Skip to content
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

php artisan key:generate command related errors #4

Open
Mantolong opened this issue Aug 1, 2022 · 1 comment
Open

php artisan key:generate command related errors #4

Mantolong opened this issue Aug 1, 2022 · 1 comment

Comments

@Mantolong
Copy link

Greetings. There seem to be an issue with the code. When I run 'php artisan key:generate' I get the following error:
C:\Developments\laravel\lux-client-management-system>php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table

Illuminate\Database\QueryException

SQLSTATE[HY000]: General error: 1128 Function 'ngram' is not defined (SQL:
create fulltext index users_fulltext_index
on users(first_name, last_name, email)
with parser ngram
)

at C:\Developments\laravel\lux-client-management-system\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
667▕ // If an exception occurs when attempting to run a query, we'll format the error
668▕ // message to include the bindings with SQL, which will make this exception a
669▕ // lot more helpful to the developer instead of just the database's errors.
670▕ catch (Exception $e) {
➜ 671▕ throw new QueryException(
672▕ $query, $this->prepareBindings($bindings), $e
673▕ );
674▕ }
675▕
}
675▕

1 C:\Developments\laravel\lux-client-management-system\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:72
Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000]: General error: 1128 Function 'ngram' is not defined")

2 C:\Developments\laravel\lux-client-management-system\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:67
PDOException::("SQLSTATE[HY000]: General error: 1128 Function 'ngram' is not defined")

Please assist. Thank you

@mountbee
Copy link

make sure your database config are correct on .env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants