How can I access the MySQL command line with XAMPP for Windows?

前端 未结 15 2236
甜味超标
甜味超标 2020-11-28 00:54

How can I access the MySQL command line with XAMPP for Windows?

相关标签:
15条回答
  • 2020-11-28 01:54

    Your MySQL binaries should be somewhere under your XAMPP folder. Look for a /bin folder, and you'll find the mysql.exe client around. Let's assume it is in c:\xampp\mysql\bin, then you should fireup a command prompt in this folder.

    That means, fire up "cmd", and type:

    cd c:\xampp\mysql\bin
    mysql.exe -u root --password
    

    If you want to use mysqldump.exe, you should also find it there.

    Log into your mysql server, and start typing your commands.

    Hope it helps...

    0 讨论(0)
  • 2020-11-28 01:54

    To access the mysql command in Windows without manually changing directories, do this:

    • Go to Control Panel > System > Advanced system settings.
    • System Properties will appear.
    • Click on the 'Advanced' tab.
    • Click 'Environment Variables'.
    • Under System Variables, locate 'Path' and click Edit.
    • Append the path to your MySQL installation to the end of the exisiting 'Variable value'. Example:

      %systemDrive%\xampp\mysql\bin\ 

      or, if you prefer

      c:\xampp\mysql\bin\ 
    • Finally, open a new command prompt to make this change take effect.

    Note that MySQL's documentation on Setting Environment Variables has little to say about handling this in Windows.

    0 讨论(0)
  • 2020-11-28 01:54

    Go to /xampp/mysql/bin and find for mysql. exe

    open cmd, change the directory to mysq after write in cmd

    mysql -h localhost -u root

    0 讨论(0)
提交回复
热议问题