Want more timely Centmin Mod News Updates?
Become a Member

[Guide] How to access your MYSQL databases using HeidiSQL instead of phpMyAdmin

Discussion in 'Centmin Mod User Tutorials & Guides' started by ljseals, May 25, 2017.

  1. ljseals

    ljseals Member

    101
    24
    18
    Dec 20, 2016
    Ratings:
    +46
    Local Time:
    7:06 PM
    HeidiSQL is a free and open-sourced tool designed for web developers using the popular MySQL server, Microsoft SQL databases and PostgreSQL. It enables you to browse and edit data, create and edit tables, views, procedures, triggers and scheduled events. Also, you can export structure and data either to SQL file, clipboard or to other servers. ..

    I find it easier to use this program instead of phpMyAdmin because of both the remote access and the availability of simply opening the program and having the setting saved. However, as a newb it took me a while to set the program to connect to the remote database. Since it is also remotely connected it seems that it may be safer than phpMyadmin. At any rate..

    Download and install HeidiSQL
    https://www.heidisql.com/download.php?download=installer

    Download and install Plink

    https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
    32 bit version https://the.earth.li/~sgtatham/putty/latest/w32/plink.exe
    64 bit version https://the.earth.li/~sgtatham/putty/latest/w64/plink.exe

    Once downloaded and installed note the location the you installed or placed plink. I put it at C:\plink.exe.

    Open HeidiSQL and click File then click Session Manager. Then click New.
    [​IMG]

    For Network Type:
    Select "MySQL (SSH tunnel)"
    For Hostname / IP: Enter "127.0.0.1"
    User: Enter "root"
    For password : Enter "Mysql Root Password"
    Port: "3306"
    If you do not know your mysql root password you can find it by entering this command.
    Code (Text):
    nano /root/.my.cnf


    Next click on SSH Tunnel Tab near the settings tab.
    [​IMG]

    For plink.exe location:
    "the location you place plink.exe earlier" Ex. C:\plink.exe
    SSH host + port: "Enter you ip address and your port number"
    Username: "root"
    Password: "root password"
    Local Port: "3307"


    Click Save and at this point you should be able to connect to your mysql database. God bless you!
     
    Last edited: May 25, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Very nice guide @ljseals (y)

    HeidiSQL is nice to use and yes remote SSHTunnel connections safer than phpmyadmin installs :)

    I'll move this guide to user tutorials forum :)
     
  3. asperty

    asperty New Member

    18
    15
    3
    Apr 13, 2019
    Ratings:
    +19
    Local Time:
    3:06 AM
    1.17.1
    10.3
    @ljseals thanks so much for your post. It really helped me out. I just couldn't get heidisql to work and your guide filled in the missing blanks outlining what to put where and where to get it.

    Once I worked out you can't use heidisql with a ssh key that requires a passphrase, (or at least i couldn't manage it) I was off to the races and working on launching a live site :)

    Thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,225
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    10:06 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Always great to see members' contributed info being useful over time :)