Command line processing mysql

  1. Connect to login
    In the mysql/bin directory, hold down shift and right-click to enter the command window

    mysql -h登陆的主机名 -u用户名 -p密码
    
  2. Show all databases

    show databases;
    
  3. Switch to a specific database

    use 具体的数据库名称;
    
  4. View version

    select version();
    

Guess you like

Origin blog.csdn.net/root_zhb/article/details/115024300