MySQL

From 太極
Revision as of 20:15, 23 June 2019 by Brb (talk | contribs) (Replaced content with "= Installation issues = == Fail to start == On Ubuntu 12.04, we can use <pre> sudo dpkg-reconfigure mysql-server-5.5 </pre> == InnoDB vs MyISAM == The default is InnoDB....")
Jump to navigation Jump to search

Installation issues

Fail to start

On Ubuntu 12.04, we can use

sudo dpkg-reconfigure mysql-server-5.5

InnoDB vs MyISAM

The default is InnoDB.

Under Shell

Manual/Documentation

https://dev.mysql.com/doc/refman

Installation and setup root password

How to Install MySQL in Ubuntu Linux (18.04)

Debian 9 (Stretch) package now ships with the UNIX_SOCKET authentication plugin enabled and you are no longer asked to set a root password when installing the package. Even when setting a root password via the mysql_secure_installation script you are still denied. So we need to run 'update'; see the command below.

See a solution at Debian 9 “Stretch” and MySQL/MariaDB root password.

$ sudo apt-get install mysql-server
$ sudo mysql_secure_installation
$ sudo mysql -u root mysql -e "update user set plugin= where user='root'; flush privileges;"
$ mysql -u root -p
...
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0
...
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |