Quantcast
Channel: The Blog of Brady J. Frey
Viewing all articles
Browse latest Browse all 117

roundcube mysql via terminal

$
0
0

Roundcube went beta last week:

http://roundcube.net/

Many of us are testing this application very aggressively — I’ve actually been using it in production for a few clients, 200+ users, and it’s worked great for them. The CSS customizing for us designers is a god send, and the functionality a clean improvement over squirrelmail.

As a notation — for those of you users weary of phpMyAdmin, or are hesitant of installing it on your OS X server — you may also use NaviCat, MacSQL, or Aqua Data Studio for free or donation.

For those of you, like me, who just don’t care for any of that and want to ARD or VPN into their server, just fly with terminal to add your mysql tables. Here’s how, briefly…

  1. Log into mysql via terminal: mysql
  2. Create your new database (end each element with a ; and a return) – I’m going to use roundc as my database, brady as my username, blah as my password:
    
    create database roundc;
    grant all on roundc.* to brady identified by 'blah';
    flush privileges;
    
    To verify, you can type in:
    
    show databases;
    
    And you’ll see that new database you created.
  3. Now, let’s import that mysql file to get everything going.
    
    use roundc;
    
    Puts you in the roundc database, now:
    
    source [drag the file mysql.intial.sql located in the sql folder]
    
    For example, I dragged mine in and it says:
    
    source /Users/bradyjfrey/Desktop/roundcubemail-0.1beta/SQL/mysql.initial.sql
    
    Press return.
  4. You can verify it created the tables by:
    
    show tables;
    
    make sure, just in case to follow up with:
    
    flush privileges;
    

You can do much more using terminal, as well as backing up your databases on the fly, and if your server let’s you, SSHing into it and running mysql commands right there. This is a quick way to install without having these 3rd party programs, and will help you improve your server skills.

Keep me posted if I have a syntax error!


Viewing all articles
Browse latest Browse all 117

Trending Articles