New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laravel 5.4 install mysql error #43
Comments
Try dropping the tables from your DB and run php artisan migrate again. |
@maryxyan Thinks 😏 |
have you solved your problem? |
like this λ php artisan voyager:install --with-dummy [Illuminate\Database\QueryException] [Doctrine\DBAL\Driver\PDOException] [PDOException] |
Hey , yes i have fixed my error , well from the error i believe your key îs
to long, we can email me tomorrow if You didnt fix it
Pe 24 mai 2017 7:04 a.m., "karllo" <notifications@github.com> a scris:
like this
λ php artisan voyager:install --with-dummy
Publishing the Voyager assets, database, and config files
Copied Directory [\vendor\tcg\voyager\publishable\assets] To
[\public\vendor\tcg\voyager\assets]
Copied Directory [\vendor\tcg\voyager\publishable\database\migrations] To
[\database\migrations]
Copied Directory [\vendor\tcg\voyager\publishable\database\seeds] To
[\database\seeds]
Copied Directory [\vendor\tcg\voyager\publishable\demo_content] To
[\storage\app\public]
Publishing complete.
Publishing complete.
Migrating the database tables into your application
Migration table created successfully.
[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was
too long; max key length is 1000 bytes (SQL: alter table tran slations add
unique translations_table_name_column_name_foreign_key_locale_unique(
table_name, column_name, foreign_key, locale))
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was
too long; max key length is 1000 bytes
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was
too long; max key length is 1000 bytes
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHbPheAPY-tMuBPjAkPqh7p7z6CfzU2Sks5r851KgaJpZM4MT9-T>
.
|
more
https://github.com/laravel/docs/blob/5.4/migrations.md
In your appserviceprovider boot method, try adding
Best sure to import Illuminate\Support\Facades\Schema at the top of the service provider.
There's a note about this in the 5.4 documentation. It's possible this is what is causing your problems.
The text was updated successfully, but these errors were encountered: