Project

General

Profile

Actions

MySQLInitConf » History » Revision 1

Revision 1/25 | Next »
Amministratore Truelite, 01/26/2006 05:27 PM
Migrated mysql page


= Configurazione di base per MySQL =

La configurazione di base di Debian crea il database con l'utente root sprovvisto di password. Per questo motivo il primo passo da fare immediatamente dopo l'installazione è impostare una password per esso, questo si fa con il comando:

{{{
/usr/bin/mysqladmin -u root password NuovaPassword
}}}

dopo di che si potrà verificare che l'accesso è possibile con la nuova password con:

{{{
server:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.0.24_Debian-5-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
----------- | Database |
----------- | mysql | | test |
-----------
2 rows in set (0.00 sec)

mysql> \q
Bye
server:~#
}}}

Si tenga presente infine che le ultime versioni del pacchetto Debian non richiedono più un intervento manuale per abilitare l'ascolto su localhost in quanto la riga:

{{{
bind-address = 127.0.0.1
}}}

è già presente in '''/etc/my.cnf'''.

Updated by Amministratore Truelite almost 19 years ago · 1 revisions