Debian Admin - Your way to Debian World

April 14, 2007

MySQL Database Server Installation and Configuration in Debian

by @ 8:29 am. Filed under General

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by MySQL AB. MySQL AB is a commercial company, founded by the MySQL developers. It is a second generation Open Source company that unites Open Source values and methodology with a successful business model.

Install Mysql database server in Debian

#apt-get install mysql-server mysql-client libmysqlclient15-dev

This will install all the required packages for mysql database server.

Now you need to configure MySQL to listen on all interfaces, not just localhost for this you need to edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1 save and exit the file.

#vi /etc/mysql/my.cnf

#bind-address = 127.0.0.1

Now you need to restart MySQL server using the following command

#/etc/init.d/mysql restart

Testing Mysql Networking

Now you need to check that networking is enabled or not using the following commnd.

#netstat -tap

In the output you should see similar to the following line

tcp 0 0 *:mysql *:* LISTEN 3281/mysqld

Setting Mysql Root password

Irf you want to set Mysql Root password use the following command

#mysqladmin -u root password mysqlrootpassword

In the above command you need to replace mysqlrootpassword with your secret password

Once you set the root password you can test this password using the following command

#mysqladmin -h serverip -u root password mysqlrootpassword

Once you loggedin in to the mysql database you should see the following mysql prompt

mysql>

If you want to install web interface or GUI tool for Mysql check here

Tags: , , ,

You may also be interested in...

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.