Saturday March 23, 2019 - 11:23:27 AM

Registered Linux User #440901    

Login    Register
Login Required

MySQL Database Server Information

MySQL has been the database server of choice for a very large number of projects ranging from very small internal applications to huge applications (like Google's Gmail for instance)
MySQL is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query language in the world. The main goals of MySQL are speed, robustness and ease of use.

Note: This area is for MySQL version 5.

Performance Tuning and Monitoring articles are in the works. Stay tuned. (Pun intended.)


Howto install “MySQL” on Ubuntu or a Debian based machine.

Do these commands as an administrative user. We are using an Ubuntu 8.10 machine for the following.


Open a terminal session.

sudo apt-get install mysql-server

This will install the latest stable version and the dependencies required.
If you have a GUI (graphical user interface) installed you may want these also:

sudo apt-get install  mysql-admin mysql-client mysql-navigator mytop gmysqlcc


During the install you will be prompted for a database root account password. Put something in there! The default is no password - which may make it a little easier for developing, however anyone can get to the data if they can connect to it. If you weren't asked for the password, you may have used some other package management software or are using a different version of Linux. Just open a terminal and issue the following:

mysqladmin -u root password yourrootsqlpassword
mysqladmin -h yourfqdmachinename -u root password yourrootsqlpassword

"yourfqdmachinename" means your Fully Qualified Domain Name - Internal Name (somehost.somewhere.local or - if it's a live machine connected to the internet)


If you need to connect to this database remotely - don't just answer yes right away, think about it for a minute... you will need to edit a file: Substitute your favorite editor in place of gedit if need be: sudo gedit /etc/mysql/my.cnf find the line that looks like
bind-address =
and comment it out (add a "#" in front of it) to make MySQL listen on all addresses or change to an ip address on your machine. I have found that it's usefull to have an extra NIC (Netork Interface Card) just for some applications I want to access remotely, however just inside my LAN - it's much safer than having the application listening on all interfaces and still let's me connect to it from within the internal network for developers.


Restart MySQL instance
In a terminal:

sudo /etc/init.d/mysql restart
sudo netstat -tap

You get something like:

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

What you're looking for is the part that says "0 *:mysql " if you're listening on all interfaces.
If you're listening on my suggested internal only address it would show something like:
0 yourmachinename.local:mysql


You should have a running MySQL server now!
Try out some of the tools installed earlier, "msql-admin" is a good start. It's Under "Applications - Programming" if you're using the standard Ubuntu Desktop Gnome Display Manager in Debian (or just mysql-admin in a terminal).

Have Fun!

Collecting For A Server Upgrade  

Time since last reboot: 4 days, 4 hours, 43 minutes , 11 seconds

“Windows - Just Say No”

@ Active Member Project Honeypot  email addresses

This page was last modified on 09/1/18 @ 10:33:49:pm
This file name: info_mysql.php

Questions, Comments, Suggestions or Requests should be sent to: 

There have been  84460  Unique Visitors (IP Addresses) to this site.

Current users online : 19
Maximum users at a time : 50
Last 25 attacks have come from:

There are currently 25 unique IP addresses blacklisted.

Public Server Status
server offline limelight  web service
 Aw Crap!, It's Off-Line
server offline limelight  mail service
 Aw Crap!, It's Off-Line
server online www  web service
 Is On-Line
server online mx 08  mail service
 Is On-Line
server online www01  F/O web service
 Is On-Line
server online mx 09  mail service
 Is On-Line
server online tertiary  DNS service
 Is On-Line
server online mx 10  mail service
 Is On-Line

©Copyright 2004-2019 - - Redd Enterprises™, Inc.,  All Rights Reserved.
Ubuntu® is a registered trademark of Canonical Ltd.
Linux® is a registered trademark of Linus Torvalds.
Apache® is a registered trademark of The Apache Software Foundation.
PHP® is a registered trademark of The PHP Group.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
All other product and service names mentioned are the trademarks of their respective companies.


Let us know what you think!