perl dbi如何连接mysql执行命令呢?

perl dbi如何连接mysql执行命令呢?

比如我只想连到一台mysql执行help命令,所以不需要数据库名字,connect时怎么连呢?
还是连个数据库吧。
连系统自带的mysql库
here "help" is command from mysql interface! NOT SQL query and NOT embeded function in DBI!
you can connect mysql with DBI without databasename to explicit.
but you can not run mysql-interface 's command in DBI's SQL query.

Maybe:
mysql -u<user> -p<password> -h<host> -e "help"


QUOTE:
原帖由 ulmer 于 2008-11-27 18:54 发表
here "help" is command from mysql interface! NOT SQL query and NOT embeded function in DBI!
you can connect mysql with DBI without databasename to explicit.
but you can not run mysql-interface  ...

right ,e文