Closed iainhamilton closed 6 years ago
I think you might be using a database that doesn't support JSON columns. What MySQL version are you using?
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
change json to text for MariaDb
Hi, I followed the process in the install section but am getting the error at the end of the below.
I hope it helps that I copide the full install process.
cucmauqpjd:public_html$ composer require spatie/laravel-server-monitor Using version ^1.3 for spatie/laravel-server-monitor ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 4 installs, 0 updates, 0 removals
Writing lock file Generating optimized autoload files
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 MySQL server version for the right syntax to u
se near 'json null,
created_at
timestamp null,updated_at
timestamp null) default cha' at line 1 (SQL: create tablehosts
(id
int unsigned not null auto_increment primary key,
name
varchar(255) not null,ssh_user
varchar(255) null,port
int null,ip
varchar(255) null,custom_properties
json null,created_at
timestamp null,updated_at
timestamp null) default character set utf8 collate utf8_unicode_ci)
In PDOConnection.php line 82:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u
se near 'json null,
created_at
timestamp null,updated_at
timestamp null) default cha' at line 1In PDOConnection.php line 80:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u
se near 'json null,
created_at
timestamp null,updated_at
timestamp null) default cha' at line 1