MySQL Server Default Password

vinhdizzo

New Member
Joined
Nov 1, 2011
Messages
20
Reaction score
0
Hi,

What is the default username and password to mysql server? I want to log into the server via "mysql -u username -p" to be able to create a database. The username and password from this link doesn't seem to work.

Thanks.
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
The MySQL root password is passw0rd by default (if I remember correctly).

Note that is a zero and not an 'oh'.
 

vinhdizzo

New Member
Joined
Nov 1, 2011
Messages
20
Reaction score
0
Thanks. What's the proper way to change this password? Would anything be broken if I change it?

Is there a list of default passwords listed anywhere? Thanks
 

duggerd

Member
Joined
Jun 23, 2011
Messages
52
Reaction score
1
Do NOT change the MySQL password. This WILL break your PBX and cause other problems. This does not cause any security problems, and should be set to this for your PBX to work.
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
865
Reaction score
144
Unless you have some compelling reason to change that password, it's definitely a good idea to leave it alone. As duggerd suggests, changing it can cause a multitude of problems.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
Don't Change The Default Mysql Password!

The only way for someone to access your MySQL password is to gain root access to your server. So... as long as your root password is secure, your MySQL password really doesn't matter. MySQL access is limited in the PIAF setup to access from the local server only. Just as an FYI, anyone with root access to your server could discover the MySQL server password in less than a minute because numerous apps store it in plain text. It's also trivial to reset it if you have root access to a Linux server. Here's how.

If you want to see a good sample of the apps that would be broken by changing your MySQL password, log into your server as root and issue the following commands:

grep -r passw0rd /var/www/html/*
grep -r passw0rd /var/lib/asterisk/*
 

Members online

Forum statistics

Threads
25,826
Messages
167,871
Members
19,252
Latest member
macrohat
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top