Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:08:59+00:00 2026-06-11T17:08:59+00:00

I just git cloned from the Laravel repo and setup the pgSQL database details.

  • 0

I just git cloned from the Laravel repo and setup the pgSQL database details. Next I tried using artisan to create the session table.

php artisan session:table

However that gives me the following error:

X-Powered-By: PHP/5.3.16
Content-type: text/html

<br />
<b>Fatal error</b>:  Uncaught exception 'Laravel\Database\Exception' with message 'SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation &quot;sessions&quot; does not exist
LINE 1: SELECT * FROM &quot;sessions&quot; WHERE &quot;id&quot; = $1 LIMIT 1
                      ^

SQL: SELECT * FROM &quot;sessions&quot; WHERE &quot;id&quot; = ? LIMIT 1

Bindings: array (
  0 =&gt; 'i8qwmexP1joUkSLDH7naRayJDiSrLFGQa4xeubgz',
)' in /home/dev/public_html/laravel/database/connection.php:263
Stack trace:
#0 /home/dev/public_html/laravel/database/connection.php(183): Laravel\Database\Connection-&gt;execute('SELECT * FROM &quot;...', Array)
#1 /home/dev/public_html/laravel/database/query.php(648): Laravel\Database\Connection-&gt;query('SELECT * FROM &quot;...', Array)
#2 /home/dev/public_html/laravel/database/query.php(592): Laravel\Database\Query-&gt;get(Array)
#3 /home/dev/public_html/laravel/database/query.php(563): Laravel\Database\Query-&gt;first(Array)
#4 /home/dev/public_html/laravel/session/drivers/database.php(36): Laravel\Database\Query-&gt;find('i8qwmexP1joUkSL...')
#5 /home/dev/public_html/laravel/session/dri in <b>/home/dev/public_html/laravel/database/connection.php</b> on line <b>263</b><br />

When I switched the database driver to mysql I get the following message:

X-Powered-By: PHP/5.3.16
Content-type: text/html

You forgot to provide the task name.

Executing the SQL query works though, while artisan does not.

CREATE TABLE `sessions` (
     `id` VARCHAR(40) NOT NULL,
     `last_activity` INT(10) NOT NULL,
     `data` TEXT NOT NULL,
     PRIMARY KEY (`id`)
);

How should I solve this error when pgSQL driver is used? Not sure what went wrong here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:09:01+00:00Added an answer on June 11, 2026 at 5:09 pm

    Try removing the single quotes from your query:

    CREATE TABLE sessions (
        id VARCHAR(40) NOT NULL,
        last_activity INT(10) NOT NULL,
        data TEXT NOT NULL,
        PRIMARY KEY (id)
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have cloned a project from a git repo into eclipse Helios using the
I have git cloned a repo from Github, now I want to experiment with
I've just started using git, and am impressed with the workflow differences from SVN,
I just cloned a git repository from my server to my local machine. I
I just setup an git repository using gitosis. What I can't figure out is
I have started using Git. I have cloned the repo on my local system.
I just cloned the git repository for the SBJson framework and imported the source
I just download Git bash and now I want to download a repository from
I have just installed Git For Windows , and created my SSH key using
I'm on Mac Snow Leopard and I just installed git . I just tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.