LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

422 solutions found in database

Page 20 of 22
0 votes
1 ans
3 views
No module named 'pymysql'

I'm trying to use PyMySQL on Ubuntu. I've installed `pymysql` using both `pip` and `pip3` but every time I use `import pymysql`, it returns `ImportEr...

database Solved
TR
asked 1 month ago by troyz
0 votes
1 ans
3 views
Remove privileges from MySQL database

Before you think this is a duplicate question, I believe I have a unique, even if it is somewhat dim-witted, case. A few days ago, I upgraded the version of...

database Solved
CY
asked 1 month ago by Cyntech
0 votes
1 ans
3 views
Undefined function mysql_connect()

I have ran `aptitude install php5-mysql` (and restarted MySQL/Apache 2), but I am still getting this error: > Fatal error: Call to undefined function mysq...

database Solved
US
asked 1 month ago by user1765369
0 votes
1 ans
3 views
pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/

I run `sudo pip install git-review`, and get the following messages: <!-- language: lang-none --> Downloading/unpacking git-review Cannot...

database Solved
SA
asked 1 month ago by Sai Wai Maung
0 votes
1 ans
3 views
adb devices command not working

I'm running Ubuntu 10.10 64 bit. I have ia32-libs installed along with Android Debug Bridge version 1.0.26. My problem(s): 1. `adb devices` >>&...

database Solved
MO
asked 1 month ago by MountainX
0 votes
1 ans
3 views
How to delete mysql database through shell command

I use the pylons and sqlalchemy. I constantly update the schema files and delete and recreate the database so that new schema can be made. Every time I do t...

database Solved
US
asked 1 month ago by user90150
0 votes
1 ans
3 views
MongoDB GPG - Invalid Signatures

I'm installing MongoDB on an Ubuntu 14.04 machine, using the instructions at: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ So I r...

database Solved
AS
asked 1 month ago by Assaf Hershko
0 votes
1 ans
3 views
MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded"

My local environment is: - Fresh Ubuntu 16.04 - With PHP 7 - With installed MySQL 5.7 ```bash sudo apt-get install mysql-common mysql-server ```...

database Solved
TO
asked 1 month ago by Tomas Votruba
0 votes
1 ans
3 views
How can I log in and authenticate to PostgreSQL after a fresh install?

I did a new install of PostgreSQL 8.4 on [Linux Mint][1]/[Ubuntu][2]. How do I create a user for PostgreSQL and log in using *psql*? When I type `psql`, it j...

database Solved
US
asked 1 month ago by user61734
0 votes
1 ans
3 views
How to test which port MySQL is running on and whether it can be connected to?

I have installed MySQL and even logged in there as a user. But when I try to connect like this: http://localhost:3306 mysql://localhost:3306...

database Solved
GE
asked 1 month ago by GeekedOut
0 votes
1 ans
3 views
Removing MySQL 5.7 Completely

I am trying to uninstall mysql from my ubuntu 12.04 completely. But not able to. I tried a lot of commands. But nothing is working. Can anyone help out here!...

database Solved
US
asked 1 month ago by user1411472
0 votes
1 ans
3 views
Where does PostgreSQL store configuration/conf files?

I have recently installed PostgreSQL on Ubuntu with the EnterpriseDB package. I can connect to the database locally, but I can't configure it because I can&...

database Solved
TI
asked 1 month ago by Timur Sadykov
0 votes
1 ans
3 views
How to reset or change the MySQL root password?

How do I change the MySQL root password and username in ubuntu server? Do I need to stop the mysql service before setting any changes?

database Solved
AS
asked 1 month ago by asm234
0 votes
1 ans
3 views
Sql query to display all user with enroll course

In the query below, it is currently displaying user that is enrolled in courses. I would like the query to show non enrolled user also. SELECT user.first...

database Solved
AA
asked 1 month ago by Aaron Tan
0 votes
1 ans
3 views
"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

I'm running a PHP script and continue to receive errors like: > Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php on line 1...

database Solved
PE
asked 1 month ago by Pekka
0 votes
1 ans
3 views
Should I use the datetime or timestamp data type in MySQL?

Would you recommend using a [datetime][1] or a [timestamp][1] field, and why (using MySQL)? I'm working with PHP on the server side. [1]: https:/...

database Solved
GA
asked 1 month ago by Gad
0 votes
1 ans
3 views
How can I import an SQL file using the command line in MySQL?

I have a `.sql` file with an export from `phpMyAdmin`. I want to import it into a different server using the command line. I have a [Windows Server 2008][1]...

database Solved
JA
asked 1 month ago by Jaylen
0 votes
1 ans
3 views
How can I prevent SQL injection in PHP?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to [SQL injection][1], like in the following example:...

database Solved
AN
asked 1 month ago by Andrew G. Johnson
0 votes
1 ans
3 views
Why shouldn't I use mysql_* functions in PHP?

What are the technical reasons for why one shouldn't use `mysql_*` functions? (e.g. `mysql_query()`, `mysql_connect()` or `mysql_real_escape_string()`)?...

database Solved
MA
asked 1 month ago by Madara's Ghost
0 votes
1 ans
3 views
SQL select only rows with max value on a column

I have this table for documents (simplified version here): | id | rev | content | |------|-------|-----------------------...

database Solved
MA
asked 1 month ago by Majid Fouladpour