Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このMySql行のPHPで同等の行を呼び出すにはどうすればよいですか?
mysql> source [path-of-file].sql
SOURCEはネイティブのmySQLコマンドではなく、コマンドラインクライアントに固有のコマンドです。
PHPでは、次のようなことを試すことができます。
<?php shell( "mysql --user=$user --password=$password $database < $file" ); ?>