LoginSignup
9
8

More than 5 years have passed since last update.

ubuntu15.04でMariaDBに接続が出来ずハマった件

Last updated at Posted at 2015-04-23

ubuntu 15.04

apt install mariadb-server
systemctl start mysqld
mysql -uroot -p

それっぽいパスワード指定するも接続できない。

mysqld_safe --skip-grant-tables &
mysql -uroot mysql
update user set password=PASSWORD("pass") where User='root';
flush privileges;
mysql -uroot -ppass

だめだ。

解決方法(仮)

apt remove mariadb-server
rm -rf /var/lib/mysql
apt install mysql-server

これでとりあえずmysqldが使えるようになったが、
mariadb-server をどうしても使いたい場合は別途調査が必要。

9
8
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8