mysql-management

How to know about MySQL 'refused connections'

别说谁变了你拦得住时间么 提交于 2019-12-06 02:01:09
问题 I am using MONyog to montitor my two mysql servers. I get alert emails from MONyog when something goes wrong. There is an error I could not find out why. It says: Connection History: Percentage of refused connections) - 66.67% the percentage is not important, this is just about having refused connections. I get this email every half an hour. So this is like a constant situation. This must be my mistake, because I just set up those servers and there is no chance somebody else could be

How to make Mysql database to support Arabic Language?

会有一股神秘感。 提交于 2019-12-06 02:01:00
问题 I am trying to save Arabic language in mysql database but it doesnot save in Arabic format. It shows question marks instead of Arabic. How to make it store values in Arabic. I tried many queries seeing from internet but it doesnot changes. How to change it for Arabic. "ar_SA: Arabic - Saudi Arabia" Please suggest a way? 回答1: Just use UTF-8 in the page's encoding, in the database connection, and the database itself. 回答2: i use WAMP Server. (windows,apache,mysql,php). //so important FIRST : in

MySql - replication monitoring tool [closed]

假装没事ソ 提交于 2019-12-06 00:38:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have a master/slave MySql replication. Im looking for a tool that will allow me to monitor the replication (see it has no error, check on the lag, etc.) I prefer a visual tool that will allow all team members get visibility on the status and not a script tool. any ideas? 回答1: #!/bin/bash HOST=your-server-ip

MySQL find unused tables

狂风中的少年 提交于 2019-12-05 13:55:25
I am working with a database which unfortunately has a lot of unused tables and I am trying to clean it up. I'm trying to find a way where I can be 100% confident that a particular table is no longer being used. After some googling, I still cannot find a good way to do so. I am only able to tell the last writes to a table (INSERT, UPDATE, etc) using: SHOW TABLE STATUS or running ls -lt on the mysql datadir (can be found by by running SHOW VARIABLES LIKE 'datadir';) Do you have any other suggestions? Thanks. RolandoMySQLDBA Try using the INFORMATION_SCHEMA.TABLES There is a column called UPDATE

Importing 1GO SQL File => ERROR 2013 (HY000) at line 23: Lost connection to MySQL server during query

我是研究僧i 提交于 2019-12-04 10:13:40
问题 Ive got to import 1go of sql data, i raised up the max_allowed_packet to 1100M to be sure. So i use : My query mysql -u root -p -D mainbase < GeoPC_WO.sql But 1 minute later it stops during the process and i get this error : **ERROR 2013 (HY000) at line 23: Lost connection to MySQL server during query **Lost connection to MySQL server during query**** 回答1: Possible that you have some large insert statements that are bigger than you max size. Check your /etc/mysql/my.cnf file or wherever it is

How to know about MySQL 'refused connections'

时光总嘲笑我的痴心妄想 提交于 2019-12-04 05:46:13
I am using MONyog to montitor my two mysql servers. I get alert emails from MONyog when something goes wrong. There is an error I could not find out why. It says: Connection History: Percentage of refused connections) - 66.67% the percentage is not important, this is just about having refused connections. I get this email every half an hour. So this is like a constant situation. This must be my mistake, because I just set up those servers and there is no chance somebody else could be interfering the servers. MONyog advices me: Try to isolate users/applications that are using an incorrect

Can MySQL reliably restore backups that contain views or not?

社会主义新天地 提交于 2019-12-03 09:50:00
问题 Environment: Ubuntu 11.10, MySQL 5.1.58 I have a small database with views. When I try to dump and restore, I get ERROR 1356 (HY000) at line 1693: View 'curation2.condition_reference_qrm_v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them However, I can connect to the partially-restored database and create the view myself. Therefore, I suspect that the error message results from an issue unrelated to the view itself (but rather how it

Can MySQL reliably restore backups that contain views or not?

此生再无相见时 提交于 2019-12-03 00:14:07
Environment: Ubuntu 11.10, MySQL 5.1.58 I have a small database with views. When I try to dump and restore, I get ERROR 1356 (HY000) at line 1693: View 'curation2.condition_reference_qrm_v' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them However, I can connect to the partially-restored database and create the view myself. Therefore, I suspect that the error message results from an issue unrelated to the view itself (but rather how it's restored, perhaps). Here's the simple approach I use to demonstrate the problem: MYSQL_PWD='xxx'

Truncate all tables (most of which have constraints). How to temporarily drop them

雨燕双飞 提交于 2019-12-02 22:10:33
I have a development database (MYSQL) which I would like to load with fresh data at some point. I would like to delete the content of all tables. What is the best way, as automated as possible, to delete the content of all tables (including those that have foreign key constraints). Is there a truncate all/ drop all equivalent constraints? Thanks I think you can do the following: Disable the foreign key constraint check mysql> SET FOREIGN_KEY_CHECKS = 0; Truncate your tables mysql> TRUNCATE MY_TABLE; Enable the foreign key constraint check mysql> SET FOREIGN_KEY_CHECKS = 1; I prefer disabling

Is there a faster way to load mysqldumps? [duplicate]

放肆的年华 提交于 2019-12-02 19:13:51
Possible Duplicate: Speeding up mysql dumps and imports mysqldump is reasonably fast, but dumps of a medium-sized database (20-30 megs) take several minutes to load using mysql my_database < my_dump_file.sql Are there some mysql settings I can tune to speed up the load? Is there a better way to load saved data? I've experimented using the mysqlimport utility with CSV-based dumps. These load slightly--but not appreciably--faster. I'm tempted to just copy raw database files around, but that seems like a bad idea. maatkit - parallel dump and maatkit - parallel restore Very fast. Assuming that you