From: http://blog.sina.com.cn/s/blog_716844910100welz.html 在linux下使用mysql客户端连接远程mysql服务器报错: [root@Server huage]# mysql -h 88.88.88.88 -P 3306 -u root -p Enter password: ERROR 1130 (HY000): Host 'my_wan_ip' is not allowed to connect to this MySQL serv
两种情况服务器down机,数据库down机 如果此时需要切从库 1.先show processlist\G,查看状态 如果看到两个状态,说明此时的从库和主库是同步的 state: waiting for master to send event I/O线程 state:has read all relay log;waiting for the slave I/O thread to update it sql线程 2.登录从库分别查看: cat /data/3306/data/master.i
1.启动数据库时报错 启动 # /etc/init.d/mysqld start Starting MySQL.Logging to '/application/mysql-5.6.36/data/mysql02.err'. 170618 18:59:33 mysqld_safe Directory '/application/mysql-5.6.36/tmp' for UNIX socket file don't exists. ERROR! The server quit without u
摘自: https://www.csdn.net/gather_2f/MtTaIgxsMTM5NC1ibG9n.html 锁表的原因:当多个连接(数据库连接)同时对一个表的数据进行更新操作,那么速度将会越来越慢,持续一段时间后将出现数据表被锁的现象,从而影响到其它的查询及更新. 例如:存储过程循环30次更新操作(cycore_file_id 为唯一标识) /*30次更新操作*/ BEGIN DECLARE v1 INT DEFAULT 30; WHILE v1 > 0 DO update jx_
1.在运行中输入CMD,确定,进入文本方式. 2.输入mysql -h localhost -u root -p 回车,使用ROOT用户登录. 3.输入use mysql; 显示Database changed,选择MYSQL系统库.4.假定我们现在增加一个'goldeye2000'用户,密码为'1234567',让其能够从外部访问MYSQL.输入 grant all on * to 'goldeye2000' identified by '1234567'; FLUSH PRIVILEGES