yhi Posted October 15, 2016 Share Posted October 15, 2016 query : select * into dumpfile '/var/www/filename.txt' from calendar Error : https://i.imgsafe.org/06af15f31f.png i am not sure what the problem is.. i want to dump file in a public accessible directory but i am not able to understand the sql error please help me with solving the error please help PSi am executing commands from phpmyadmin Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/ Share on other sites More sharing options...
requinix Posted October 15, 2016 Share Posted October 15, 2016 query : select * into dumpfile '/var/www/filename.txt' from calendar No, your query was select * LIMIT 0, 25 into dumpfile '/var/www/filename.txt' from calendarSpend a moment to familiarize yourself with the syntax for a SELECT query. Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538320 Share on other sites More sharing options...
yhi Posted October 15, 2016 Author Share Posted October 15, 2016 no m 100% sure my query was select * into dumpfile '/var/www/filename.txt' from calendar & i executed that phpmyadmin to maybe it added that limit :/ as i told i want to dump that table data to a file in a public accessible directory please help me with correct syntax Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538321 Share on other sites More sharing options...
requinix Posted October 16, 2016 Share Posted October 16, 2016 If your database server is running on the same machine as your web server then that dumpfile thing is certainly a way to do it. But you won't be able to execute it from phpMyAdmin unless you can find a way to stop it from adding the LIMIT clause. What about phpMyAdmin's Export tab? Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538324 Share on other sites More sharing options...
Barand Posted October 16, 2016 Share Posted October 16, 2016 How about putting a FROM clause in your query to tell it which table the data is to come from. Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538326 Share on other sites More sharing options...
yhi Posted October 16, 2016 Author Share Posted October 16, 2016 If your database server is running on the same machine as your web server then that dumpfile thing is certainly a way to do it. But you won't be able to execute it from phpMyAdmin unless you can find a way to stop it from adding the LIMIT clause. What about phpMyAdmin's Export tab? export option didnt allow me to export in file extension i want & in directory i want Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538343 Share on other sites More sharing options...
yhi Posted October 16, 2016 Author Share Posted October 16, 2016 How about putting a FROM clause in your query to tell it which table the data is to come from. m not totally sure what you are saying can you please explain or post the query thanks Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538344 Share on other sites More sharing options...
Barand Posted October 16, 2016 Share Posted October 16, 2016 Spend a moment to familiarize yourself with the syntax for a SELECT query. Quote Link to comment https://forums.phpfreaks.com/topic/302344-mysql-error/#findComment-1538345 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.