centos 7.2 安装mysql 运行到:/etc/init.d/mysqld start 启动MySQL数据库。 这一步骤的时候提示错误
root账户登录的。错误代码在下面,求指点下。StartingMySQL./usr/local/mysql/bin/mysqld_safe:line586:/var/li...
root账户登录的。错误代码在下面,求指点下。
Starting MySQL./usr/local/mysql/bin/mysqld_safe: line 586: /var/lib/mysql/mysqld_safe.pid: No such file or directory
awk: (FILENAME=- FNR=1) warning: error writing standard output (Broken pipe)
2017-04-22T02:51:57.520636Z mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
错误是从 初始化mysql数据库时就开始了
# /usr/local/mysql/bin/mysqld --initialize-insecure --datadir=/usr/local/mysql/data/ --user=mysql
错误提示如下
2017-04-22T12:45:43.505209Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
谢谢哥哥姐姐给看下 展开
Starting MySQL./usr/local/mysql/bin/mysqld_safe: line 586: /var/lib/mysql/mysqld_safe.pid: No such file or directory
awk: (FILENAME=- FNR=1) warning: error writing standard output (Broken pipe)
2017-04-22T02:51:57.520636Z mysqld_safe error: log-error set to '/var/log/mariadb/mariadb.log', however file don't exists. Create writable for user 'mysql'.
错误是从 初始化mysql数据库时就开始了
# /usr/local/mysql/bin/mysqld --initialize-insecure --datadir=/usr/local/mysql/data/ --user=mysql
错误提示如下
2017-04-22T12:45:43.505209Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
谢谢哥哥姐姐给看下 展开
展开全部
对于源代码编译安装或者通过二进制包直接拷贝安装的mysql,默认并没有mysqld这个启动脚本。可以在源码包或者拷贝的二进制包的support files目录中拷贝mysql.server文件为/etc/init.d/mysqld,然后就可以通过service脚本管理服务了。例如:service mysqld startservice mysqld status或者直接运行mysqld脚本/etc/init.d/mysqld start
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询