Report this

What is the reason for this report?

Cannot execute query on mysql ubuntu droplet.

Posted on May 6, 2015

Cannot execute query on mysql ubuntu droplet.

i tried to execute this query : select a.NAMA_MAHASISWA,a.TAHUN_MASUK,a.C_KODE_PRODI,b.*
from t_mst_mahasiswa a, smk_t_log_tra_mhs_nilai b where a.C_NPM=b.C_NPM AND b.C_TAHUN_AKADEMIK=‘2014-2015’ AND b.C_KODE_SEMESTER=‘1’ AND b.F_VERIFIED=‘0’ order by b.C_NPM ASC

but it return nothing. the query not excecuted.

i tried to execute the same query on my xampp localhost on windows and it was executed successfully.

anyone facing the same problem before?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

How are you executing the query? What makes you think it’s not executed?

executed the query on pypmyadmin, also on mysql shell using : mysql -u root -p

it’s not executed because it returns nothing, both phpmyadmin and mysql shell.

the i run the same query on my xampp localhost on windows and it was executed successfully.

i follow this tutorial to build my webserver : http://www.servermom.org/build-ubuntu-server-a-complete-guide/

i’m sorry before, now the query was executed successfully. the problem is mysql use 100% of cpu, and then i’ve tried to index my table and it works. thanks for your help :)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.