当前位置:K88软件开发文章中心编程语言LinuxLinux01 → 文章内容

MySQL 安装配置

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-11 12:52:04







57 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).OK...5、创建开机启动脚本$ cd /usr/local/webserver/mysql/$ cp support-files/mysql.server /etc/rc.d/init.d/mysqld $ chkconfig --add mysqld $ chkconfig --level 35 mysqld on6、启动mysql服务器$ service mysqld start7、连接 MySQL$ /usr/local/webserver/mysql/bin/mysql -u root -p修改MySQL用户密码mysqladmin -u用户名 -p旧密码 password 新密码或进入mysql命令行SET PASSWORD FOR '用户名'@'主机' = PASSWORD(‘密码');创建新用户并授权:





grant all privileges on *.* to 用户名@'%' identified by '密码' with grant option;其他命令启动:service mysqld start停止:service mysqld stop重启:service mysqld?restart重载配置:service mysqld?reload

上一页  [1] [2] 


MySQL 安装配置