I tried, but I got the following error message:
DBIx::Class::Storage::DBI::_connect(): DBI Connection failed: DBI conn +ect('dbname="turboimmisoft"','root',...) failed: Unknown database '"t +urboimmisoft"' at C:/xampp/perl/site/lib/DBIx/Class/Storage/DBI.pm li +ne 1395.
Can anyone write the right code for me please? I wasted an entire day on this. In MySQL, the database is made up a folder containing the tables. That folder is named turboimmisoft (same name as the database). There is no more folder in turboimmisoft.
Some info:
1. Path to the MySQL database:C:\xampp\mysql\data\turboimmisoft\
2. Path to per.exe: C:\xampp\perl\bin\
3. Connection info with DBI: my $driver = "mysql"; my $database = "turboimmisoft"; my $dsn = "DBI:$driver:database=$database"; my $userid = "root"; my $password = "";
In reply to Re^2: How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
by david123
in thread How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
by david123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |