Skip to content

Instantly share code, notes, and snippets.

@rahulshivsharan
Created July 20, 2016 07:31
Show Gist options
  • Save rahulshivsharan/9a6192ad1e178d650855eba213d63ead to your computer and use it in GitHub Desktop.
Save rahulshivsharan/9a6192ad1e178d650855eba213d63ead to your computer and use it in GitHub Desktop.
MySql on Ubuntu
Installation
$ sudo apt-get install mysql-server
$ sudo apt-get install mysql-client
to check the status of mysql; whether it has started
$sudo netstat -tap | grep mysql
to start mysql
$ sudo /etc/init.d/mysql restart
to connect to mysql from commandline
sudo mysql -h localhost -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment