About insert in linux, cainiao answers the question-Linux general technology-Linux technology and application information. The following is a detailed description. Sql10G is installed in linux. Every time you discard the database and add records to the form, you must execute
Mysql-u root-p
Enter Password
SQL> insert into mysql. user (Host, User, Password, Select_priv, primary, Update_priv, Delete_priv, Create_priv, Drop_priv, primary, File_priv, Grant_priv, primary, Index_priv, Alter_priv, primary, Super_priv, values, Lock_tables_priv, Execute_priv, values, ssl_type, ssl_cipher, numbers, numbers, max_questions, max_updates, max_connections, max_user_connections) value ('%', 'biao1 ', PASSWORD ('xxxxxx'), 'y ', 'y ', 'y', '', 0, 0, 0, 0 );
SQL> create database biaoge;
SQL> exit
Can I skip entering the user name and password and directly write the user name and password into the INSERT statement? My idea is to make a script file with the sh suffix and execute a statement automatically, so as to achieve the above execution results. (The result is to create a form called biaoge and add a fixed row of records to the form of biao1)
Cainiao for help. Thank you!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.