# /opt/webwork/webwork2/bin/addcourse admin --db-layout=sql_single --users=adminClasslist.lst --professors=admin
At that point I get the following error at the terminal:
DBD::mysql::db do failed: Specified key was too long. Max key length is 500 at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 812
At WeBWorK, the Course Administration link appears and the login screen comes up, but when I try to login with "admin" and "admin" I get:
Warning -- there may be something wrong with this question. Please inform your instructor including the warning messages below.
Invalid user ID or password.
Please enter your username and password for admin below:
If you check Remember Me your login information will be remembered by the browser you are using, allowing you to visit WeBWorK pages without typing your user name and password (until your session expires). This feature is not safe for public workstations, untrusted machines, and machines over which you do not have direct control.
Username: | |
Password: | |
Remember Me |
WeBWorK Warnings
WeBWorK has encountered warnings while processing your request. If this occured when viewing a problem, it was likely caused by an error or ambiguity in that problem. Otherwise, it may indicate a problem with the WeBWorK system itself. If you are a student, report these warnings to your professor to have them corrected. If you are a professor, please consult the warning output below for more information.
Warning messages
failed to open /opt/webwork/courses/admin/logs/login.log for writing: Permission denied at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 719.
$database_dsn = "dbi:mysql:webwork;host=mysql.catawba.edu";
$database_username = "webwork";
$database_password = "appropriate password eneered here";
Any help anyone can provide would be greatly appreciated.
D. K. Brown