摘要: 1)mysql -V 可以查看MySQL的版本号 2)在MySQL的命令界面,可以查看版本好 mysql> status 阅读全文
posted @ 2017-02-09 13:44 dingcx2013 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 通过Navicat for MySQL连接到虚拟机中的MySQL,但是报了图的错误 要进行两步: 1)授权 mysql>grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option; m 阅读全文
posted @ 2017-02-09 12:58 dingcx2013 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 在安装MySQL的时候,没有设置root密码,或者添加其他用户时,默认是没有密码的,此时我们mysql -uroot 就可以直接进入MySQL的命令界面 如果要添加root的密码,用set password for 'root'@'localhost' = password('newpassword 阅读全文
posted @ 2017-02-09 12:30 dingcx2013 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 查看MySQL进程的状态: [root@dcx lib]# service mysqld statusmysqld is stopped 发现是关闭的,但是启动MySQL却报错 [root@dcx lib]# service mysqld startAnother MySQL daemo 阅读全文
posted @ 2017-02-09 12:23 dingcx2013 阅读(216) 评论(0) 推荐(0) 编辑