Forums

Error because I am using free account?

[edited by admin: formatting]

import MySQLdb as mdb
engine = mdb.connect(host='bk-prod-us1.cd2junihlkms.us-east-1.rds.amazonaws.com',user='r5ehssz',passwd='R3wPU6v',db='backands146367311ktcttuv7',port=3306)
cur = engine.cursor()
df_2.to_sql(name='KLSE', con=engine, flavor='mysql', if_exists='replace')
cur.execute("alter table KLSE add id int primary key auto_increment")

The code above work fine In Anaconda by send data over to backand.com MySQL. In a free account it cause error. If I upgrade to a hacker account, will it working fine without any code changing?

What error message do you get?

If you are trying to access an external database, then you will have to upgrade, yes.

I believe at least that your database connection wil work fine (but of course, if you have any coding errors etc, then there may be problems further down etc)