爱问知识人 爱问教育 医院库

Linux 安装 mysql

首页

Linux 安装 mysql


        

提交回答
好评回答
  • 2023-04-17 07:30:00
      %’ IDENTIFIED BY ‘youpassword’ WITH GRANT OPTION;5。2 安装时的一些错误-bash: 。/scripts/mysql_install_db: /usr/bin/perl: bad interpreter: 没有那个文件或目录 解决: yum -y install perl perl-devel Installing MySQL system tables。
      /bin/mysqld: error while loading shared libraries: libaio。so。1: cannot open shared object file: No such file or directory解决:yum -y install libaio-devel6、其他6。
      1 配置环境变量vi + /etc/profile export PATH=。/usr/local/mysql/bin7 mysql 开启服务自启动命令echo"service mysqld start" >> /etc/rc。local或者进入/etc/目录,直接vim rc。
      local编辑rc。local文件,在最后一行添加“service mysqld start”,保存退出8 mysql初始化密码因为mysql刚安装好是没有密码的,所以我们要将其设置密码⑴、刚安装时,root用户是空的,需要修改密码: ①mysqladmin -u root password ‘new-password’ ②或者,登陆后,直接修改用户表里的密码 mysql -u root #用root用户登录 1。
       select user,host,password from mysql。user; 查看数据库的用户 2。 use mysql #切换到mysql表 set password for root@localhost=password(‘123456‘); #设置指定域名下root账号的密码 set password for root@域名=password(‘123456‘); 3。
      或者,更常见的sql操作: update user set password=password(‘123456‘) where user=‘root@localhost’;⑵、匿名用户是危险的 delete from mysql。user where user=‘‘; #删除匿名用户⑶、退出mysql: exit;测试[root@dream ~]mysql -u root #匿名登录,已设置密码或者删除了匿名用户,登陆失败[root@dream ~]mysql -u root -p #通过密码用root登录Enter password: #在这里输入密码123456[root@dream ~]mysql -u root -p 123456 #显示密码登陆9 设置本机远程访问远程服务器的mysqlNaviCat远程连接的权限问题远程登录会出现如下提示: 1103 - host xxx。
      xxx。xxx。xx is not allowed to connec to this mysql server。或1045 - Access denied for user‘root‘@‘192。168。1。11‘ (using password: YES)。
      解决方案://mysql访问grant all privileges on *。* to ‘root‘@‘%‘ identified by ‘123456‘;#其实就是权限问题,设置root在所有域名(%表示任何地址)登陆时,赋给所有权限,密码123456。
      根据需要可设置更严格些。上面的123456是你自己设置的密码,远程密码应该要严格一点,否则会不恶意攻破Linux 安装 mysql。

    徐***

    2023-04-17 07:30:00

类似问题

换一换

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):