How can I access MySQL from the command line?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • megri
    Administrator
    • Mar 2004
    • 804

    How can I access MySQL from the command line?

    How can I access MySQL from the command line?

    mysql -u <mysql_user> -p<mysqlp***> -h <mysqlserver>

    By default you would use the root user with no p***word if connecting to localhost only. While it does simplify administration it is also a security risk if your server ever gets violated as anyone with a shell can have full access to your MySQL server.
    Parveen K - Forum Administrator
    SEO India - TalkingCity Forum Rules - Webmaster Forum
    Please Do Not Spam Our Forum
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎