mysql> load data local infile '/Users/flint/learn/mysql/pet' into table bx_pet; 执行报错 ERROR 1148 (42000): The used command is not allowed with this MySQL version 解决办法: 在连接数据库的时候使用 mysql --local-infile -uroot -p 连接即可…
sh-4.1# /etc/init.d/mysqld status ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists sh-4.1# /etc/init.d/mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/data1/mysql/mysql.pid). sh-4.1# rm mysql…
通过service mysql status 命令来查看mysql 的启动状态 报错如下: ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists 解决方法:删除/var/lock/subsys/mysql 下的mysql文件即可…
[root@admin-node subsys]# service mysql startStarting MySQL. ERROR! [root@admin-node subsys]# service mysql status ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists /var/lock/subsys/mysql存在的原因可能是以前没有卸载干净或者上次意外退出.直接将其删除就可以了,删除…
我猜想是可能是连接的用户权限问题.结果这样子操作mysql库,可以解决此问题.在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'..mysql -u root -pmysql>use mysql;mysql>select 'host' from user where user='root';mysql>update user set host = '%' where user ='root';mysql&g…