Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    how to solve this error in laravel

    Web Development
    laravel web development drivers
    5
    24
    2310
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KrissSachintha
      KrissSachintha last edited by

      could not find driver (SQL: insert into tasks (task, updated_at, created_at) values (testing, 2020-01-02 09:57:44, 2020-01-02 09:57:44))

      Capture.PNG

      1 Reply Last reply Reply Quote 1
      • dinlinux
        dinlinux last edited by

        Just install php mysql driver on your system. Please check your PHP version and install appropriate version..

        KrissSachintha 1 Reply Last reply Reply Quote 0
        • KrissSachintha
          KrissSachintha @dinlinux last edited by

          @dinlinux

          do you have any refference regarding the installation,cuz I feel like lost :|

          root 1 Reply Last reply Reply Quote 0
          • root
            root Linux Help @KrissSachintha last edited by root

            @ChrisSachintha

            composer update
            
            composer require doctrine/dbal
            

            or , install php mysql, ex (php 7.1 mysql in ubuntu) :

            sudo apt-get install php7.1-mysql
            

            did you run this laravel project under xampp or wamp ?

            KrissSachintha 1 Reply Last reply Reply Quote 0
            • KrissSachintha
              KrissSachintha @root last edited by

              @root

              xamp in windows 7 php 7.4.0

              root 1 Reply Last reply Reply Quote 0
              • root
                root Linux Help @KrissSachintha last edited by

                @ChrisSachintha

                Uncommented this line in php.ini:

                extension=php_mysqli.dll
                
                KrissSachintha 1 Reply Last reply Reply Quote 0
                • KrissSachintha
                  KrissSachintha @root last edited by

                  @root already did but nothing happened :(

                  root 1 Reply Last reply Reply Quote 0
                  • root
                    root Linux Help @KrissSachintha last edited by

                    @ChrisSachintha

                    did you restart the xampp server ?

                    one more thing to do , check if mysql is loaded to the php running

                    <?php
                        phpinfo();
                    ?>
                    
                    KrissSachintha 1 Reply Last reply Reply Quote 0
                    • KrissSachintha
                      KrissSachintha @root last edited by KrissSachintha

                      @root it also works

                      root 1 Reply Last reply Reply Quote 0
                      • root
                        root Linux Help @KrissSachintha last edited by

                        @ChrisSachintha

                        did you run this ?

                        composer update
                         
                        composer require doctrine/dbal
                        
                        
                        KrissSachintha 1 Reply Last reply Reply Quote 0
                        • KrissSachintha
                          KrissSachintha @root last edited by

                          @root yep

                          Capture.PNG

                          root 1 Reply Last reply Reply Quote 0
                          • root
                            root Linux Help @KrissSachintha last edited by

                            @ChrisSachintha

                            run this

                            composer dump-autoload -o
                            
                            KrissSachintha 1 Reply Last reply Reply Quote 0
                            • KrissSachintha
                              KrissSachintha @root last edited by

                              @root said in how to solve this error in laravel:

                              composer dump-autoload -o

                              done it says generated optimized autoload files containing 1193 classes

                              root 1 Reply Last reply Reply Quote 0
                              • root
                                root Linux Help @KrissSachintha last edited by

                                @ChrisSachintha

                                now check laravel mysql connection

                                KrissSachintha 1 Reply Last reply Reply Quote 0
                                • KrissSachintha
                                  KrissSachintha @root last edited by KrissSachintha

                                  same results

                                  root 1 Reply Last reply Reply Quote 0
                                  • root
                                    root Linux Help @KrissSachintha last edited by

                                    @ChrisSachintha

                                    still have that error ?

                                    KrissSachintha 1 Reply Last reply Reply Quote 0
                                    • KrissSachintha
                                      KrissSachintha @root last edited by

                                      @root yep, maybe bad luck :pig:

                                      root 1 Reply Last reply Reply Quote 0
                                      • root
                                        root Linux Help @KrissSachintha last edited by

                                        @ChrisSachintha

                                        can you access phpmyadmin ?

                                        KrissSachintha 2 Replies Last reply Reply Quote 0
                                        • KrissSachintha
                                          KrissSachintha @root last edited by

                                          @root yep

                                          1 Reply Last reply Reply Quote 0
                                          • KrissSachintha
                                            KrissSachintha @root last edited by

                                            @root if you have anydesk or teamviewer i can give access

                                            root 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            0
                                            Online

                                            3.7k
                                            Users

                                            1.3k
                                            Topics

                                            5.3k
                                            Posts

                                            • Privacy
                                            • Terms & Conditions
                                            • Donate

                                            © Copyrights and All right reserved Lanka Developers Community

                                            Powered by Axis Technologies (PVT) Ltd

                                            Made with in Sri Lanka

                                            | |