首页 / MYSQL / mysql启动报错解决-3
mysql启动报错解决-3
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mysql启动报错解决-3,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3283字,纯文字阅读大概需要5分钟。
内容图文
![mysql启动报错解决-3](/upload/InfoBanner/zyjiaocheng/1069/2f4d09d3c54447d49b3e56590dad6dbe.jpg)
场景还原:
初始化
#/usr/local/webserver/mysql/bin/mysql_install_db --user=mysql --basedir=/usr/local/webserver/mysql/ --datadir=/home/mysqldata
Installing MySQL system tables...
150205 11:48:00 [Note] Flashcache bypass: disabled
150205 11:48:00 [Note] Flashcache setup error is : ioctl failed
OK
Filling help tables...
150205 11:48:00 [Note] Flashcache bypass: disabled
150205 11:48:00 [Note] Flashcache setup error is : ioctl failed
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/webserver/mysql//bin/mysqladmin -u root password ‘new-password‘
/usr/local/webserver/mysql//bin/mysqladmin -u root -h kooxoo17.ktep3.kuxun.cn password ‘new-password‘
Alternatively you can run:
/usr/local/webserver/mysql//bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr/local/webserver/mysql/ ; /usr/local/webserver/mysql//bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/local/webserver/mysql//mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/local/webserver/mysql//scripts/mysqlbug script!
Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team‘s productivity.
启动
/usr/local/webserver/mysql/bin/mysqld_safe --defaults-file=/home/mysql_config/my.cnf --user=mysql --basedir=/usr/local/webserver/mysql/ --datadir=/home/mysqldata &
未启动成功:
看日志报错如下:
150205 16:17:03 mysqld_safe Starting mysqld daemon with databases from /home/mysqldata
150205 16:17:03 [Warning] ‘--default-character-set‘ is deprecated and will be removed in a future release. Please use ‘--character-set-server‘ instead.
150205 16:17:03 [Warning] ‘--log-long-format‘ is deprecated and will be removed in a future release. Please use ‘--log-short-format‘ instead.
150205 16:17:03 [Warning] ‘--log_slow_queries‘ is deprecated and will be removed in a future release. Please use ‘‘--slow_query_log‘/‘--slow_query_log_file‘‘ instead.
150205 16:17:03 [Warning] --myisam_max_extra_sort_file_size is deprecated and does nothing in this version. It will be removed in a future release.
150205 16:17:03 [Note] Flashcache bypass: disabled
150205 16:17:03 [Note] Flashcache setup error is : ioctl failed
150205 16:17:03 [Note] Flashcache setup error is : ioctl failed
/usr/local/webserver/mysql/libexec/mysqld: File ‘/home/mysql_config/log/mysql-bin.index‘ not found (Errcode: 13)
File ‘/home/mysql_config/log/mysql-bin.index‘ not found (Errcode: 13)
150205 16:17:03 [ERROR] Aborting
150205 16:17:03 [Note] /usr/local/webserver/mysql/libexec/mysqld: Shutdown complete
150205 16:17:03 mysqld_safe mysqld from pid file /home/mysql_config/run/mysql.pid ended
原因:
mkdir -p /home/mysql_config/log
手工创建的这个目录,那么默认是root权限,mysql无法写入,所以不会生成mysql-bin.index这个文件。
解决方法:
chown -R mysql.mysql /home/mysql_config/
原文:http://tenderrain.blog.51cto.com/9202912/1612033
内容总结
以上是互联网集市为您收集整理的mysql启动报错解决-3全部内容,希望文章能够帮你解决mysql启动报错解决-3所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。