Потребителят root на MySQL не е потребителят root на системата. Това са два съвсем различни потребителя root. MySQL се инсталира с не активиран потребител root. За да го активираш, трябва да му зададеш парола. Номерът се случва със следната команда
GeSHi (Bash):
mysqladmin -u root password ПАРОЛА
Напиши желаната парола на мястото на ПАРОЛА. Портът на MySQL сървъра, както и всички настройки на MySQL сървъра, се задават в my.cnf файла, който можеш да намериш в папката /etc или в папката /etc/mysql (не съм сигурен къде е по подразбиране във Fedora). Трябва да рестартираш MySQL сървъра след промени по my.cnf файла 
Благодаря ти,
На мен поне това ми е ясно, че са два различни потребителя. Сега реших и преинсталирах Федора с надежда нещо да се промени, но всичко си остана все така.
[root@localhost floyd]# /etc/init.d/mysqld start
Инициализиране на MySQL база-данни: Installing MySQL system tables...
ERROR: 1062 Duplicate entry 'localhost-' for key 1
090104 13:31:58 [ERROR] Aborting
090104 13:31:58 [Note] /usr/libexec/mysqld: Shutdown complete
Installation of system tables failed!
Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.comPlease consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
[Провал]
[root@localhost floyd]# chkconfig --levels 235 mysqld on
[root@localhost floyd]# /etc/init.d/mysqld start
Стартиране на MySQL: [ Да ]
[root@localhost floyd]# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 3004/mysqld
[root@localhost floyd]# /etc/init.d/mysqld restart
Спиране на MySQL: [ Да ]
Стартиране на MySQL: [ Да ]
[root@localhost floyd]# netstat -ntap | grep mysql
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 3125/mysqld
[root@localhost floyd]# mysqladmin -u root password 123456
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
[root@localhost floyd]# mysqladmin -h localhost -u root password 123456
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
[root@localhost floyd]# /etc/init.d/mysqld restart
Спиране на MySQL: [ Да ]
Стартиране на MySQL: [ Да ]
[root@localhost floyd]# mysqladmin -u root password 123456
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Направих гокакто ми пишеш но изглежда или това си слага само някаква парола или незнам изобщо какво става.
Това е съдържанието на my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# To allow mysqld to connect to a MySQL Cluster management daemon, uncomment
# these lines and adjust the connectstring as needed.
#ndbcluster
#ndb-connectstring="nodeid=4;host=localhost:1186"
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[ndbd]
# If you are running a MySQL Cluster storage daemon (ndbd) on this machine,
# adjust its connection to the management daemon here.
# Note: ndbd init script requires this to include nodeid!
connect-string="nodeid=2;host=localhost:1186"
"my.cnf" 26L, 849C
Вече се отчаях и ще се откажа