GithubHelp home page GithubHelp logo

Comments (5)

fulopattila122 avatar fulopattila122 commented on September 16, 2024

This is a well known Laravel problem: https://laravel-news.com/laravel-5-4-key-too-long-error

But they key length was set in this demo project, so I guess you're using the Vanilo framework in an application and you have to add:

Schema::defaultStringLength(191);

in your AppServiceProvider::boot() method.

Ps. please use English.

from demo.

cfrisly avatar cfrisly commented on September 16, 2024

Thanks, true solved now I get this error, but I'm not using MariaDB

In Connection.php line 664:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'json not null, custom_properties js
on not null, responsive_images json not n' at line 1 (SQL: create table media (id int unsigned not null auto_
increment primary key, model_type varchar(191) not null, model_id bigint unsigned not null, collection_name v
archar(191) not null, name varchar(191) not null, file_name varchar(191) not null, mime_type varchar(191) nul
l, disk varchar(191) not null, size int unsigned not null, manipulations json not null, custom_properties j
son not null, responsive_images json not null, order_column int unsigned null, created_at timestamp null, up dated_at timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

In Connection.php line 452:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that
corresponds to your MariaDB server version for the right syntax to use near 'json not null, custom_properties js
on not null, responsive_images json not n' at line 1

from demo.

fulopattila122 avatar fulopattila122 commented on September 16, 2024

The doc says:

Database engine: MySQL 5.7 or higher, MariaDB 10.2.7 or higher or PostgreSQL is required

You can check your db engine version with this command:
mysql -V (MySQL and MariaDB)
or
psql - V (Postgres)

from demo.

fulopattila122 avatar fulopattila122 commented on September 16, 2024

Has the issue been resolved?

from demo.

fulopattila122 avatar fulopattila122 commented on September 16, 2024

Feel free to reopen if the issue persists.

from demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.