mysql单机安装_MySQL5.6单机部署安装

1 [root@db1 home]# chown -R mysql.mysql /data/mysql/mysql_3306 >修改属主属组2 [root@db1 home]# cd /usr/local/mysql/

3 [root@db1 mysql]# chown -R mysql.mysql /usr/local/mysql/*

4 [root@localhost mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/mysql_3306/data5 Installing MySQL system tables...OK6

7 Filling help tables...OK8

9 To start mysqld at boot time you have to copy10 support-files/mysql.server to the right place for your system11

12 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !13 To do so, start the server, then issue the following commands:14

15 /usr/local/mysql/bin/mysqladmin -u root password 'new-password'16 /usr/local/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'17

18 Alternatively you can run:19

20 /usr/local/mysql/bin/mysql_secure_installation21

22 which will also give you the option of removing the test23 databases and anonymous user created by default. This is24 strongly recommended for production servers.25

26 See the manual for more instructions.27

28 You can start the MySQL daemon with:29

30 cd . ; /usr/local/mysql/bin/mysqld_safe &31

32 You can test the MySQL daemon with mysql-test-run.pl33

34 cd mysql-test ; perl mysql-test-run.pl35

36 Please report any problems athttp://bugs.mysql.com/

37

38 The latest information about MySQL is available on the web at39

40 http://www.mysql.com

41

42 Support MySQL by buying support/licenses athttp://shop.mysql.com

43

44 New default config file was created as ./my.cnf and45 will be used by default by the server when you start it.46 You may edit this file to change server settings47

48 WARNING: Default config file /etc/my.cnf exists on the system49 This file will be read by default by the MySQL server50 If you do not want to use this, either remove it, or use the51 --defaults-file argument to mysqld_safe when starting the server

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值