Question

Cannot execute query on mysql ubuntu droplet.

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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 :)

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/

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