Jump to content
  • 0

Question

Posted

Salut, am o problema la o baza de date, cand o urc pe localhost functioneaza perfect nu primesc nici o eroare dar cand o urc pe un server hostat primesc aceasta eroare (https://imgur.com/a/6QHXwZI) am cautat pe diferite site-uri si am intrebat cateva persoane dar nu ma ajutat nimeni..

4 answers to this question

Recommended Posts

  • 0
Posted

Poti arata acel CREATE TABLE rpg_tickets din fisierul .sql?

E posibil ca pe localhost sa ai MariaDB si hostu sa foloseasca MySQL(sau vice versa) si sa fie o vloare pusa gresita la default

  • 0
Posted
La 23.01.2019 la 6:55, Banditul a spus:

Poti arata acel CREATE TABLE rpg_tickets din fisierul .sql?

E posibil ca pe localhost sa ai MariaDB si hostu sa foloseasca MySQL(sau vice versa) si sa fie o vloare pusa gresita la default


-- --------------------------------------------------------

--
-- Structură tabel pentru tabel `rpg_tickets`
--

CREATE TABLE `rpg_tickets` (
  `id` int(11) NOT NULL,
  `Author` text NOT NULL,
  `Player` text NOT NULL,
  `Details` text NOT NULL,
  `Date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `Status` int(11) NOT NULL,
  `IP` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

  • 0
Posted

Incearca asa

CREATE TABLE `rpg_tickets` (
  `id` int(11) NOT NULL,
  `Author` text NOT NULL,
  `Player` text NOT NULL,
  `Details` text NOT NULL,
  `Date` datetime NOT NULL DEFAULT '1970-01-01 00:00:01' ON UPDATE CURRENT_TIMESTAMP,
  `Status` int(11) NOT NULL,
  `IP` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

E posibil ca hostul sa foloseasca o versiune de mysql mai mica de 5.6 care nu accepta in DATETIME sa fie default CURRENT_TIMESTAMP

De asemenea ai putea face asa si e acelasi lucru

CREATE TABLE `rpg_tickets` (
  `id` int(11) NOT NULL,
  `Author` text NOT NULL,
  `Player` text NOT NULL,
  `Details` text NOT NULL,
  `Date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `Status` int(11) NOT NULL,
  `IP` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

 

  • 0
Posted
La 23.01.2019 la 7:15, Banditul a spus:

Incearca asa


CREATE TABLE `rpg_tickets` (
  `id` int(11) NOT NULL,
  `Author` text NOT NULL,
  `Player` text NOT NULL,
  `Details` text NOT NULL,
  `Date` datetime NOT NULL DEFAULT '1970-01-01 00:00:01' ON UPDATE CURRENT_TIMESTAMP,
  `Status` int(11) NOT NULL,
  `IP` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

E posibil ca hostul sa foloseasca o versiune de mysql mai mica de 5.6 care nu accepta in DATETIME sa fie default CURRENT_TIMESTAMP

De asemenea ai putea face asa si e acelasi lucru


CREATE TABLE `rpg_tickets` (
  `id` int(11) NOT NULL,
  `Author` text NOT NULL,
  `Player` text NOT NULL,
  `Details` text NOT NULL,
  `Date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `Status` int(11) NOT NULL,
  `IP` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

 

A fost a2a, multumesc mult pentru ajutor... incerc sa rezolv asta de 3 zile, ma bucur ca mai sunt si persoane ca si tine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.