C:\>mysql -uroot -padmin
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.37-community-nt-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| attendance |
| fusionchartsdb |
| mysql |
| sugarcrm |
| test |
+--------------------+
6 rows in set (0.09 sec)
mysql> use mysql;
Database changed
mysql>
Yani mysql -uroot -padmin tarafından bir süreci başlatmak istiyoruz, ve bu süreçte ben bu ifadeleri çalıştırmak istiyorum:
show databases
use mysql
insert xxx (..) values (..)
PHP bunu yapmak nasıl?