Can=20you=20run=20the=20MySQL=20command=20it=20is=20using=20manually=20fro=
m=20a=20prompt?
K:/Program=20Files/MySQL/MySQL=20Server=205.0/bin/mysql.exe=20--passwd=3D"=
webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"webpy"
The=20normal=20port=20MySQL=20binds=20to=20is=203306=20but=20I=20know=20(a=
t=20least=20on=20Linux)=20if
you=20specify=20"localhost"=20instead=20of=20127.0.0.1=20it=20will=20use=20=
pipes=20instead
of=20TCP=20so=20the=20port=20doesn't=20even=20matter.=20Not=20sure=20how=20=
it=20is=20on=20Windows.
-Seth
On=20Thu,=202007-12-20=20at=2023:15=20+0800,=20Steven=20Yip=20wrote:
>=20hi,
>=20
>=20I=20am=20a=20bit=20new=20to=20this.=20I=20am=20trying=20to=20run=20web=
ware=20and=20python,=20Apache
>=20with=20mysql=205=20on=20windows=202003.
>=20
>=20I=20am=20trying=20to=20get=20the=20mysql=20to=20work.=20
>=20
>=20But=20when=20I=20ran=20the=20AllTests.py,=20I=20got=20this=20error:
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testBasics
>=20(UserKit.Tests.UserManagerTest.UserManagerToMiddleKitTest)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testDuplicateUser
>=20(UserKit.Tests.UserManagerTest.UserManagerToMiddleKitTe
>=20st)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testUserAccess
>=20(UserKit.Tests.UserManagerTest.UserManagerToMiddleKitTest)
>=20
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testUserClass
>=20(UserKit.Tests.UserManagerTest.UserManagerToMiddleKitTest)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testBasics
>=20(UserKit.Tests.UserManagerTest.RoleUserManagerToMiddleKitTest)
>=20
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testDuplicateUser
>=20(UserKit.Tests.UserManagerTest.RoleUserManagerToMiddleK
>=20itTest)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testUserAccess
>=20(UserKit.Tests.UserManagerTest.RoleUserManagerToMiddleKitT
>=20est)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20ERROR:=20testUserClass
>=20(UserKit.Tests.UserManagerTest.RoleUserManagerToMiddleKitTe
>=20st)
>=20----------------------------------------------------------------------=
>=20Traceback=20(most=20recent=20call=20last):
>=20=20=20File=20"UserKit\Tests\UserManagerTest.py",=20line=20230,=20in=20=
setUp
>=20=20=20=20=20raise=20OSError,=20'Error=20running:=20%s'=20%=20executeSq=
lCmd
>=20OSError:=20Error=20running:=20K:/Program=20Files/MySQL/MySQL=20Server
>=205.0/bin/mysql.exe=20--
>=20passwd=3D"webpy"=20--host=3D"localhost"=20--port=3D"3307"=20--user=3D"=
webpy"=20<=20K:
>=20\Downloads\We
>=20bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL
>=20\Create.sql
>=20
>=20----------------------------------------------------------------------=
>=20Ran=2083=20tests=20in=2018.984s
>=20
>=20My=20all=20AllTests.config=20is=20as=20below
>=20
>=20
>=20{=20=20=20=20#=20Edit=20this=20file=20to=20activate=20more=20tests
>=20
>=20=20=20=20=20#=20Turn=20on=20tests=20that=20use=20MySQL?
>=20=20=20=20=20'hasMysql':=20True,
>=20
>=20=20=20=20=20#=20If=20hasMysql=20is=20true,=20then=20these=20are=20used=
=20to=20connect:
>=20=20=20=20=20'mysqlTestInfo'=20:=20{
>=20
>=20=20=20=20=20=20=20=20=20#=20Where=20is=20MySQLdb=20lib=20located?
>=20=20=20=20=20=20=20=20=20#=20'extraSysPath':=20['/somewhere/MySQL-pytho=
n-1.2.2/build/lib'],
>=20=20=20=20=20=20=20=20=20'extraSysPath':=20['K:/Python25/Lib/site-packa=
ges/MySQLdb'],
>=20
>=20=20=20=20=20=20=20=20=20#=20Where=20is=20the=20MySQL=20client=20locate=
d=20(if=20not=20on=20the=20path)?
>=20=20=20=20=20=20=20=20=20#=20'mysqlClient':=20'/usr/local/mysql/bin/mys=
ql',
>=20=20=20=20=20=20=20=20=20#=20'mysqlClient':=20'c:/progra~1/mysql/mysqls=
~1.0/bin/mysql.exe',
>=20=20=20=20=20=20=20=20=20'mysqlClient':=20'K:/Program=20Files/MySQL/MyS=
QL=20Server
>=205.0/bin/mysql.exe',
>=20
>=20=20=20=20=20=20=20=20=20#=20The=20name=20of=20the=20MySQL=20database=20=
to=20be=20used:
>=20=20=20=20=20=20=20=20=20'database':=20'webpy',=20#=20Test=20case=20use=
s=20this,
>=20=20=20=20=20=20=20=20=20#=20but=20UserManagerTest.mkmodel/Settings.con=
fig=20also=20defines=20it.
>=20
>=20=20=20=20=20=20=20=20=20#=20This=20is=20passed=20to=20MySQLObjectStore=
():
>=20=20=20=20=20=20=20=20=20'DatabaseArgs':=20{
>=20=20=20=20=20=20=20=20=20=20=20=20=20'host':=20'localhost',
>=20=20=20=20=20=20=20=20=20=20=20=20=20'port':=203307,
>=20=20=20=20=20=20=20=20=20=20=20=20=20'user':=20'webpy',=20#=20should=20=
have=20all=20database=20privileges
>=20=20=20=20=20=20=20=20=20=20=20=20=20'passwd':=20'webpy',
>=20=20=20=20=20=20=20=20=20},
>=20=20=20=20=20}
>=20}
>=20
>=20Anything=20that=20I=20missed?=20
>=20Thanks...
>=20
>=20Steven=20Yip
______________________________________________________________________
This=20email=20has=20been=20scanned=20by=20the=20MessageLabs=20Email=20Sec=
urity=20System.
For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema=
il=20
______________________________________________________________________
|