Debian

From Hashmysql
Jump to: navigation, search

Installation


To install the server package: apt-get install mysql-server

To enable MySQL on startup: Enabled by default

To start the MySQL server: Started by default. /etc/init.d/mysql {start|stop|restart}

To set up MySQL's root user password mysqladmin -u root password your-new-password

In addition, to also remove anonymous users and test database: mysql_secure_installation

Default Layout


my.cnf: /etc/mysql/my.cnf

datadir: /var/lib/mysql

socket file: /var/run/mysqld/mysqld.sock

Error Log: /var/log/syslog