mysql shell无法启动_mysql安装后无法启动的问题 迷南。 2022-11-19 07:58 328阅读 0赞 我是从源码安装的,版本5.5.32编译:shell>cmake.-DCMAKE\_INSTALL\_PREFIX=/usr/local/mysqlshell>makeshell>makeinstall配置:shell>cd/usr/local/mysqlshell>chown-Rmysql.shell>chg... 我是从源码安装的,版本5.5.32 编译: shell> cmake . -DCMAKE\_INSTALL\_PREFIX=/usr/local/mysql shell> make shell> make install 配置: shell> cd /usr/local/mysql shell> chown -R mysql . shell> chgrp -R mysql . shell> scripts/mysql\_install\_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data shell> chown -R root . shell> chown -R mysql data shell> cp support-files/my-medium.cnf /etc/my.cnf shell> bin/mysqld\_safe --user=mysql & 出现的错误: \[1\] 11508 root@localhost:/usr/local/mysql\# 130702 14:14:32 mysqld\_safe Logging to '/usr/local/mysql/data/localhost.err'. 130702 14:14:32 mysqld\_safe Starting mysqld daemon with databases from /usr/local/mysql/data 130702 14:14:34 mysqld\_safe mysqld from pid file /usr/local/mysql/data/localhost.pid ended \[1\]+ Done bin/mysqld\_safe --user=mysql 从localhost.err文件中查到的具体错误是: 130702 14:14:32 mysqld\_safe Starting mysqld daemon with databases from /usr/local/mysql/data 130702 14:14:32 InnoDB: The InnoDB memory heap is disabled 130702 14:14:32 InnoDB: Mutexes and rw\_locks use GCC atomic builtins 130702 14:14:32 InnoDB: Compressed tables use zlib 1.2.3 130702 14:14:32 InnoDB: Initializing buffer pool, size = 128.0M 130702 14:14:32 InnoDB: Completed initialization of buffer pool 130702 14:14:32 InnoDB: highest supported file format is Barracuda. 130702 14:14:33 InnoDB: Waiting for the background threads to start 130702 14:14:34 InnoDB: 5.5.32 started; log sequence number 1595675 130702 14:14:34 \[Note\] Server hostname (bind-address): '0.0.0.0'; port: 3306 130702 14:14:34 \[Note\] - '0.0.0.0' resolves to '0.0.0.0'; 130702 14:14:34 \[ERROR\] Failed to create a socket for IPv4 '0.0.0.0': errno: 13. 130702 14:14:34 \[ERROR\] Can't create IP socket: Permission denied 130702 14:14:34 \[ERROR\] Aborting 130702 14:14:34 InnoDB: Starting shutdown... 130702 14:14:34 InnoDB: Shutdown completed; log sequence number 1595675 130702 14:14:34 \[Note\] /usr/local/mysql/bin/mysqld: Shutdown complete 遇到这个情况后不知道如何处理,希望高手给些指导,谢谢! 展开
还没有评论,来说两句吧...