mysql 升级maria_mysql5.7升级到mariadb-server-10.0

5.7############################..............................................................................................]

Thefile /var/lib/mysql/debian-5.7.flag indicated a

version that cannot automatically be upgraded. Therefore the

previous data directory will be renamed to/var/lib/mysql-5.7and

a new data directory will be initialized at/var/lib/mysql.

Please manually export/import your data (e.g. with mysqldump) ifneeded.

invoke-rc.d: could not determine current runlevel

Unpacking mariadb-server-10.0 (10.0.38-0ubuntu0.16.04.1) ...

Selecting previously unselected package mariadb-server.##############################.......................................................................................................]

Preparing to unpack .../mariadb-server_10.0.38-0ubuntu0.16.04.1_all.deb ...

Unpacking mariadb-server (10.0.38-0ubuntu0.16.04.1) ...#################################....................................................................................................]

Processing triggersfor man-db (2.7.5-1) ...#################################################...............................................................................................]

Processing triggersfor systemd (229-4ubuntu21.2) ...

Processing triggersfor ureadahead (0.100.0-19) ...

Setting up libdbd-mysql-perl (4.033-1ubuntu0.1) ...################################################.........................................................................................]

Setting up mariadb-client-core-10.0 (10.0.38-0ubuntu0.16.04.1) ...#######################################...................................................................................]

Setting up mariadb-client-10.0 (10.0.38-0ubuntu0.16.04.1) ...##################################################.............................................................................]

Setting up mariadb-server-core-10.0 (10.0.38-0ubuntu0.16.04.1) ...##################################################........................................................................]

Setting up mariadb-server-10.0 (10.0.38-0ubuntu0.16.04.1) ...#############################################################..................................................................]

Installing new version of configfile /etc/apparmor.d/usr.sbin.mysqld ...

Installing new version of configfile /etc/init.d/mysql ...

Installing new version of configfile /etc/logrotate.d/mysql-server ...

Installing new version of configfile /etc/mysql/debian-start ...

invoke-rc.d: could not determine current runlevel############################################################################...............................................................]*Stopping MariaDB database server mysqld [ OK ]

Setting up mariadb-server (10.0.38-0ubuntu0.16.04.1) ...########################################################################............................................................]

Processing triggersfor systemd (229-4ubuntu21.2) ...#################################################################################......................................................]

Processing triggersfor ureadahead (0.100.0-19) ...of script `mysql'overrides LSB defaults (0 1 6).

root@PC-RENGUOQIANG:/etc/init.d#

mysqladmin-uroot -p root

mysql-uroot -proot

SET passwordfor 'root'@'localhost'=password('root');

MariaDB [mysql]> selectuser, plugin from mysql.user;+------+-------------+

| user | plugin |

+------+-------------+

| root | unix_socket |

+------+-------------+

1 row in set (0.00sec)

update mysql.user set authentication_string=PASSWORD('root'), plugin='mysql_native_password' where user='root';

flush privileges;

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值