
linux mysql
文章平均质量分 60
美妞小丸子
这个作者很懒,什么都没留下…
展开
-
ERROR 2003 (HY000): Can't connect to MySQL server
[unisoft@cc11 ~]$ mysql -h119.*.*.* -u zyl -p -P3307 -S --socket=/tmp/zhangyl/mysql.sock Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on '119.*.*.*' (113) 在网上搜有几种解决办法: 1. m原创 2013-06-14 19:37:08 · 569 阅读 · 0 评论 -
mysql ERROR 1045 (28000): Access denied for user 'zyl'@'localhost' (using password: YES)
mysql创建用户: mysql> grant all privileges on *.* to zyl@'%' identified by '123'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) 登陆: [root@m原创 2013-06-14 19:32:45 · 633 阅读 · 0 评论 -
mysql grant问题
创建一个只读用户 grant select on *.* to readonly on '%' identified by 'readonly'; 注:这里的%是指所有的用户,但是不包含本机(localhost),如果mysql -h 192.168.0.40 -u readonly -P 3306 -p(192.168.0.40是本机IP)是可以连接成功的。 如果想在本地不加-h 也可以连原创 2013-08-14 16:31:47 · 891 阅读 · 0 评论