How to Install MySQL on Fedora
Edited by Amitplatinum, Teresa, Cforrester101, Arrogance and 8 others
First lets talk about what is actually mysql. It is an RDBMS which is open source that means it is free to use. Generally people use it because it is easy and good for small applications and specially Linux people use Mysql. Now there are two things if you want to make a database on Mysql. First you need Mysql script and second Mysql server.
EditSteps
-
1Check if you have mysql or mysql server installed.
- rpm -q mysql
Ad -
2Then use this command to install mysql and mysql server in fedora- yum install mysql mysql-server
-
3If you are using Ubuntu or Debian distro, then replace Yum with apt.
-
4After installation is finished, check the installation with "rpm -q mysql" command. Similar command is for mysql server- rpm -q mysql-serverAd
EditTips
- always log in as root user before doing any kind of installation in Linux.
- Set the username and password for mysql database by issuing following command
- "mysqladmin -u root -p 'password'" and then apply the password
- if you find any problems in mysql installation.just do the reinstallation. Remove the existing packages with this command.
- "rpm -e mysql"
- login in to mysql by use of following command.
- "mysql -u root -p"
EditWarnings
- Don't forget the root password for the mysql database.
- Root password for mysql database is different from the root password of your Linux system.
- in case you forget the password just use "History" command to check the password(not always works)