angela 发表于 2018-10-3 10:23:51

mysql-安装

  mysql安装完毕是没有密码的,启动服务后根据服务提示:
  Initializing MySQL database:Installing MySQL system tables...
  OK
  Filling help tables...
  OK
  To start mysqld at boot time you have to copy
  support-files/mysql.server to the right place for your system
  PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  To do so, start the server, then issue the following commands:
  /usr/bin/mysqladmin -u root password 'new-password'
  /usr/bin/mysqladmin -u root -h wsleichao3 password 'new-password'
  Alternatively you can run:
  /usr/bin/mysql_secure_installation
  which will also give you the option of removing the test
  databases and anonymous user created by default.This is
  strongly recommended for production servers.
  See the manual for more instructions.
  You can start the MySQL daemon with:
  cd /usr ; /usr/bin/mysqld_safe &
  You can test the MySQL daemon with mysql-test-run.pl
  cd /usr/mysql-test ; perl mysql-test-run.pl
  Please report any problems with the /usr/bin/mysqlbug script!
  用/usr/bin/mysqladmin -u root password 'new-password' 设置登录的密码,密码设置好后,用命令
  #mysql -u root -p
  用root用户登录

nihaota 发表于 2022-8-3 14:01:55

讨债公司
蓝月传奇辅助
蓝月辅助
页: [1]
查看完整版本: mysql-安装