Giter VIP home page Giter VIP logo

Comments (6)

parteeksingh005 avatar parteeksingh005 commented on August 15, 2024 1

SETTING UP THE DATABASE SCHEMA AND POPULATING DATA IN TABLES:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php:29 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php on line 29

unable to setup datbase in XAMMP gettinh this error someone help me with this issue .

from sqli-labs.

Audi-1 avatar Audi-1 commented on August 15, 2024

This issue seems to be unique to you because i tested it and it works fine. May be it is being affected because of the way how you copy it. Did u try cloning the repo using Git commands.
Generally this happens when the code in the file is not getting interpreted as intended. I am not a programer by heart but saw some issues with unbalanced HTML TAGS. updated the file, so you should not have any issue.
Else you can copy the SQL strings manually and paste them into mysql editor to get the database populated manually line by line.

from sqli-labs.

a0xnirudh avatar a0xnirudh commented on August 15, 2024

@januspatrick The above mentioned issue seems to exist on normal Ubuntu versions because I personally tried it on 2 different machines and end up with the above error state. Since the sqli-labs are optimized to work with Kali linux, it will be best if users can install Kali in virtual box and then you can do the same in kali after you start apache2 and mysql services (You have to do this manually since they will not be started by default when kali boots up.). After that if you don't like to work on virtual box (like me), you can set a host only adapter in virtual box configuration which will assign a particular ip address to your kali machine, something like 192.168.xx.xx.

Once this is done, you can access the sqli-labs from the host machine by going to 192.168.xx.xx/sqli-labs .

Here is an old tutorial I have written about setting up host only adapter in virtual box: http://goo.gl/wYrMS2

@Audi-1 I am not sure why it happens in Ubuntu varients (I am still not sure if it happens on every ubuntu varients but its happening for me and my friends machine) but I will take a detail look into it and will try to fix it.

Sqli-labs is an extremly wonderful job from your side ..

from sqli-labs.

HanwGeek avatar HanwGeek commented on August 15, 2024

I encountered with the same problem on Ubuntu16.04+php5.6.
And I guess it's about system code format. With the command 'locale', my format is UTF-8.

from sqli-labs.

ankitb458 avatar ankitb458 commented on August 15, 2024

SETTING UP THE DATABASE SCHEMA AND POPULATING DATA IN TABLES:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php:29 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php on line 29

unable to setup datbase in XAMMP gettinh this error someone help me with this issue .

from sqli-labs.

ArrowShot avatar ArrowShot commented on August 15, 2024

SETTING UP THE DATABASE SCHEMA AND POPULATING DATA IN TABLES:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php:29 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sqli1\sql-connections\setup-db.php on line 29

unable to setup datbase in XAMMP gettinh this error someone help me with this issue .

are u find solution

from sqli-labs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.