我在XAMPP for Windows上运行phpMyAdmin和MySQL。
我通过两种方式访问MySQL数据库。第一,通过localhost/phpmyadmin,第二,通过connection.php文件(带有mysql_connect('localhost','user','password'),它被服务器上的网站的其他对于phpMyAdmin登录和mysql_connect,我都使用根用户。我知道我不应该使用
int salah=0;//hitung jumlah kesalahan Class.forName("com.mysql.jdbc.Driverreturn true; return super.onOptionsItemSelected(item);在这里,我调用jdbc来连接名为hubung的mysql:
package com.TPK.SistemPendataanPelalat