mysqlimport without mysql installation?

妖精的绣舞 提交于 2019-12-11 06:46:56

问题


I'm trying to use mysqlimport to import text files to a mysql database. The problem is that the linux box I am importing the text files from will not have an installation of mysql and I am importing these files to a database on a different server. Does mysqlimport need to have a full installation of mysql to work? Can I just bring over the mysqlimport exe and some libraries? Cheers, Kaiser


回答1:


Yes, you can use it standalone, among the options described here you can specify host to connect to, and the user and password to use. No need for the box where mysqlimport is to have the server installed.

I believe you need nothing more that the RPM Package Client Utilities.




回答2:


As long as you can connect to the database server from the client you are running on, it is fully enough to have a MySQL client installation.

mysqlimport -h host -p port [options] db_name textfile1 textfile2

Compare the MySQL reference manual or execute

mysqlimport --help


来源:https://stackoverflow.com/questions/6958346/mysqlimport-without-mysql-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!