MySQL not displaying table info

2009-10-04 Thread MarvinC
Can anyone help me figure out the following issue surrounding MySQL and phpMyAdmin: I load phpMyAdmin ver3.2, log in, and create a new database. I see the following warning at the bottom: Your PHP MySQL library version 5.0.51a differs from your MySQL server version 5.1.39. This may cause

Re: Questions on Database Design

2009-10-04 Thread Mark Phillips
Thanks to Martin and John for their help! Mark On Sat, Oct 3, 2009 at 5:53 PM, Martin Gainty mgai...@hotmail.com wrote: enforcing by username/password to the DB is your safest method and if you want to really be safe put ssh access onto the MySQL Server here is how to install SSH and MySQL

No tuples, but AttributeError about tuple!

2009-10-04 Thread Victor Subervi
Hi; I have the following python code: sql = 'insert into products values(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s);', (id, name, title, description, price, bedrooms, bathrooms, conditions, acreage, construction, location, estate, address, furnished,

error creating table

2009-10-04 Thread Sharique uddin Ahmed Farooqui
Hi, I'm trying to create a table with 2 columns both are primary key (combined) and both are foreign key as well. I'm getting error cannot create table. Here is the sql CREATE TABLE `userroles` ( `roleid` INT(10) UNSIGNED NOT NULL DEFAULT '0', `userid` INT(10) UNSIGNED NOT NULL

RE: error creating table

2009-10-04 Thread John
What is the exact error you are getting? John Daisley MySQL Cognos Contractor Certified MySQL 5 Database Administrator (CMDBA) Certified MySQL 5 Developer (CMDEV) IBM Cognos BI Developer Telephone +44 (0)7812 451238 Email j...@butterflysystems.co.uk -Original Message- From: Sharique

Re: No tuples, but AttributeError about tuple!

2009-10-04 Thread Michael Dykman
This looks like much more of a python question than a MySQL question.. I'll reply offline. - michael dykman On Sun, Oct 4, 2009 at 2:04 PM, Victor Subervi victorsube...@gmail.com wrote: Hi; I have the following python code:      sql = 'insert into products values(%s, %s, %s, %s, %s, %s, %s,

RE: error creating table

2009-10-04 Thread LIU YAN
hi, I run your code , but worked propertly. I suggested to check the table USERS , ROLES, is the column userid / roleid same data type (INT(10) UNSIGNED ) with your userroles table ? == mysql create table users (userid INT(10)