Permalink
Browse files

Rename TestMySQL to TestPythonMySQL to designate the language.

  • Loading branch information...
1 parent 032384b commit 54af41b08432d4c40e3aa8f789b557b3ed9cdba7 Alan DuBoff committed with Alan DuBoff Aug 17, 2011
@@ -1,6 +1,6 @@
$db_host = 'localhost';
$db_user = 'root';
-$db_pwd = 'app123';
+$db_pwd = 'testpassword';
$database = 'test';
$table = 'contacts';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
+This example requires that you have a database setup on MySQL of the host
+which this is running on, named test.
+
+The app will use Python to call the MySQL database, creating a cursor, and
+fetch the rows of data. As it loops through parsing the rows,
+calls the javascript function use_my_python_data() to send the data back
+to the javascript side.
+
@@ -8,7 +8,7 @@
use_my_python_data("**** from Python ****");
-db = MySQLdb.connect (host = 'localhost', user = 'root', passwd = 'app123', db = 'test')
+db = MySQLdb.connect (host = 'localhost', user = 'root', passwd = 'testpassword', db = 'test')
cursor = db.cursor();
cursor.execute("select firstname,lastname, last_updated from users order by lastname");
File renamed without changes.
File renamed without changes.

0 comments on commit 54af41b

Please sign in to comment.