本文作者:问几许

MySql 使用中遇到的一些常见问题

问几许 4年前 ( 2019-11-22 ) 6876 抢沙发
MySql 使用中遇到的一些常见问题摘要: MySql 的常用命令:## 1.Windows下mysqld --console  或  net start mysql  ##&...


MySql 的常用命令:

## 1.Windows下
mysqld --console  
或  net start mysql  ## 启动服务
mysqladmin -uroot shudown  
或  net stop mysql   ## 关闭服务

## 2.Linux下
service mysql start      ## 启动服务
service mysql stop       ## 关闭服务
service restart stop     ## 重启服务


问题一:Redirecting to /bin/systemctl start mysqld.service

启动mysql提示:Redirecting to /bin/systemctl start mysqld.service

原因在于安装环境的时候默认装了 MariaDB,安装MariaDB之后必须先启动MariaDB才能启动mysqld,其实就是运行一下MariaDB向导,它是个一次性的东东,就是帮助你提高mysql安全性的。

总之就是依次运行下面三局命令就搞定:

systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation

最后起开mysql

service mysqld start
文章版权及转载声明

作者:问几许本文地址:https://wenjixu.com/blog/139.html发布于 4年前 ( 2019-11-22 )
文章转载或复制请以超链接形式并注明出处问几许

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

阅读
分享

发表评论

快捷回复:

评论列表 (暂无评论,6876人围观)参与讨论

还没有评论,来说两句吧...