4321pp 发表于 2017-8-29 09:53:55

MySQL创建数据库失败

如果使用root账号登录到数据库create database时提错错误:MySQL: 1006 - Can't create database '***' (errno: 13)
或MySQL: 1006 - Can't create database '***' (errno: 28),一般是mysql用户没有目录权限的问题。先用Linux指令 :   ls -ld 查看data目录权限, data是存放数据文件的文件夹
ls -ld /alidata/server/mysql-5.5.37/data如果显示:drwxr-xr-x 6 root root 4096 Dec 11 08:57 /alidata/server/mysql-5.5.37/data则说明mysql用户没有操作权限,需要用chown指令授权:
chown -R mysql:mysql/alidata/server/mysql-5.5.37/data

at1358 发表于 2017-8-31 09:09:59

Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).

at1358 发表于 2017-8-31 09:10:09

Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).

at1358 发表于 2017-8-31 09:10:15

Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).

at1358 发表于 2017-8-31 09:10:26

Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).

at1358 发表于 2017-8-31 09:10:33

Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).Starting MySQL............. ERROR! The server quit without updating PID file (/home/shuicanjuOA/mysql/data/qwe123.pid).
页: [1]
查看完整版本: MySQL创建数据库失败