![]() ![]() String url = "jdbc:mysql://localhost:3306/dbAMJ" Liveconn = DriverManager.getConnection( strconn ) īuffer = "connection error: " + ex.getMessage() Ĭonverting for MySQL this will require replacing: String ldriver = ".ClientDriver" īuffer = "driver error: " + ex.getMessage() ![]() The database connection was coded as follows: While I was fumbling around my local hard drive, I suddenly remembered that I have a project: Rasch-itembank. My habit with code is to store it in many places and to give the locations labels which will have absolutely no meaning to me when I come looking for it later. ![]() That server has long been consigned to the bin, and by now the disk back up probably also erased. From memory there is something sitting on a website, which does not connect to a database, and there is a link (deliberately not hyperlinked here) to another applet sitting on my own server. It is ages since I cobbled this together, so I have no idea where to begin. The process was interesting because it revealed differences in the required coding modifications extend beyond making the connection and include minor but critical differences in the SQL itself. Thus far I have been working entirely with what I call text file code, run from the command line, and with nothing to see beyond a few cryptic messages to the screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |