Edit Article

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.

Ad

EditSteps

  1. 1
    Check if you have mysql or mysql server installed.
    • rpm -q mysql
    Ad
  2. 2
    Then use this command to install mysql and mysql server in fedora- yum install mysql mysql-server
  3. 3
    If you are using Ubuntu or Debian distro, then replace Yum with apt.
  4. 4
    After installation is finished, check the installation with "rpm -q mysql" command. Similar command is for mysql server- rpm -q mysql-server
    Ad
Add your own method
Save

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"
Ad

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)

Article Info

Categories: MySQL

Recent edits by: NinjagoKarly, Unknown181, Lilliesx53

Ad

Thanks to all authors for creating a page that has been read 5,604 times.

Was this article accurate?

YesNo

Become
an Author!

Write an Article