zoukankan      html  css  js  c++  java
  • centos_64 位 安装 mysql后查找my.conf 路径 以及数据库1045问题 查看数据库版本

    • 启动mysql服务

      • service mysqld start
    • 停止mysql服务

      • service mysqld stop
    • 重启mysql服务

      • service mysqld restart
    • 查找数据库配置文件

      • 默认位置 /etc/my.conf
    • mysql登录出现1045问题

      • mysqld_safe --user=mysql --skip-grant-tables --skip-networking & //不经过授权表来进入服务器
      • mysql -u root mysql
      • use mysql; //选择数据库
      • mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’; //修改root密码
      • mysql> FLUSH PRIVILEGES; //刷新权限
    • 查找数据库版本

      • mysql环境中
      • mysql > status;
  • 相关阅读:
    [LeetCode] 240
    [LeetCode] 169
    [LeetCode] 28
    [LeetCode] 27
    [LeetCode] 14
    [LeetCode] 9
    [LeetCode] 7
    [LeetCode] 2
    数据库开发规范
    Mysql优化
  • 原文地址:https://www.cnblogs.com/ikai/p/7727884.html
Copyright © 2011-2022 走看看