Home

List All Databases on MySQL Server

It's not that hard, but I keep forgetting how to do it, so I wrote it down.

It's pretty simple, but something I've found myself looking for this a few times recently. Log into mysql as you normally would.

$ mysql -uroot -proot

This will give you the mysql prompt, at which you can enter:

mysql> SHOW DATABASES;

And you'll get your listing of databases! Make sure you use a semicolon to end that statement. It's easy to get caught up wondering why your command isn't executing.

Also, note you may use lower case here. In other words, this will work, too:

mysql> show databases;

Let's Connect

Keep Reading

Connect to a Remote MySQL Database in Rails

Using a remote database with rails is useful for collaborating on projects or for keeping all your data in one place. Here's how to get it set up from scratch.

Mar 09, 2015

Use PurgeCSS To Optimize Stylesheet with Jekyll

Typically your application's stylesheet bundle contains several rules your site doesn't need. Here's how to use PurgeCSS to remove those unused styles when you're working on a Jekyll site.

Jun 13, 2018

10 Angular Tools to Build Creative Web Apps

To help the developers build robust and high-quality web apps, Angular offers plenty of useful tools.

Harikrishna Kundariya
Jun 30, 2022