Can someone help me how to use join in these tables I created?

|
spidersontummy 2021-03-21 13:15:42
i keep getting an error with my code and idk why, if someone could help dm me please
MasterZiv 2021-03-21 13:34:04
Ujjawal 2021-03-20 16:49:44
Can someone help me how to use join in these tables I created?

From Table1 as t1 join table2 as t2 on here join condition

user8938 2021-03-22 14:21:15
Php has been updated to 7 so it was giving error, I have tried to resolve by changing mysql to mysqli, still I’m getting error
MasterZiv 2021-03-22 14:23:50
user8938 2021-03-22 14:21:15
Php has been updated to 7 so it was giving error, I have tried to resolve by changing mysql to mysqli, still I’m getting error

Wonderful !
Go live with this fact!

MasterZiv 2021-03-22 14:24:58
user8938 2021-03-22 14:21:15
Php has been updated to 7 so it was giving error, I have tried to resolve by changing mysql to mysqli, still I’m getting error

Send code as text, please, if it is big , send via pasterbin.com or similar

user8938 2021-03-22 14:25:12
Ok
MasterZiv 2021-03-22 14:26:39
user8938 2021-03-22 14:21:15
Php has been updated to 7 so it was giving error, I have tried to resolve by changing mysql to mysqli, still I’m getting error

These are most probably problems of your PHP installation, not related to MySQL, offtopic in this chat

user8938 2021-03-22 14:27:20
But I’m getting error in sql code
MasterZiv 2021-03-22 14:29:42
user8938 2021-03-22 14:27:20
But I’m getting error in sql code

If you don’t show your code, don’t show your errors, no one will help you

user8938 2021-03-22 14:29:56
global $ARR_CFGS;

if (!isset($GLOBALS[‘dbcon’])) {

if(LOCAL_MODE) {
$GLOBALS[‘dbcon’] = mysqli_connect(‘localhost’, ‘username’, ‘password’, ‘database’);
mysqli_select_db($ARR_CFGS[“db_name”]) or die(“Could not connect to database. Please check configuration and ensure mysqli is running.”);
} else{
$GLOBALS[‘dbcon’] = mysqli_connect($ARR_CFGS[“db_host”], $ARR_CFGS[“db_user”], $ARR_CFGS[“db_pass”]);
mysqli_select_db($ARR_CFGS[“db_name”]) or die(“Internal Server Error. Please contact website adminstrator if this problem persists.”);
}
}

MasterZiv 2021-03-22 14:31:51
user8938 2021-03-22 14:29:56
global $ARR_CFGS;

if (!isset($GLOBALS[‘dbcon’])) {

if(LOCAL_MODE) {
$GLOBALS[‘dbcon’] = mysqli_connect(‘localhost’, ‘username’, ‘password’, ‘database’);
mysqli_select_db($ARR_CFGS[“db_name”]) or die(“Could not connect to database. Please check configuration and ensure mysqli is running.”);
} else{
$GLOBALS[‘dbcon’] = mysqli_connect($ARR_CFGS[“db_host”], $ARR_CFGS[“db_user”], $ARR_CFGS[“db_pass”]);
mysqli_select_db($ARR_CFGS[“db_name”]) or die(“Internal Server Error. Please contact website adminstrator if this problem persists.”);
}
}

this is PHP, not related to MySQL

svraju2020 2021-03-22 15:51:21
Can you please share some reference to know Mysql high availability options

What are different types of ha options(innodb, ndb cluster etc..)

Deb_575 2021-03-23 10:35:38
Hello guys
I am trying to create a user interactive script in bash to be able to create and drop databases in mysql. Now my question is how can I pass the user input i.e. Database name in mysqladmin?
Below is a snippet

read -p ” enter database name : ” > db
enter database name : test
mysqladmin –login-path=/path create $db

Obviously this $db variable is not being accepted
Is there anyother way??

piterden 2021-03-23 11:45:59
Deb_575 2021-03-23 10:35:38
Hello guys
I am trying to create a user interactive script in bash to be able to create and drop databases in mysql. Now my question is how can I pass the user input i.e. Database name in mysqladmin?
Below is a snippet

read -p ” enter database name : ” > db
enter database name : test
mysqladmin –login-path=/path create $db

Obviously this $db variable is not being accepted
Is there anyother way??

Read the bash scripting manual. It’s not related to mysql

Kev In 2021-03-23 13:07:36
mysql_en-8766.jpg
Am trying to load a .Jpg image into my db.. where could i be going wrong ?
MasterZiv 2021-03-23 13:30:47
Kev In 2021-03-23 13:07:36
Am trying to load a .Jpg image into my db.. where could i be going wrong ?

https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_load-file

LOAD_FILE(file_name)

Reads the file and returns the file contents as a string. To use this function, the file must be located on the server host, you must specify the full path name to the file, and you must have the FILE privilege. The file must be readable by the server and its size less than max_allowed_packet bytes. If the secure_file_priv system variable is set to a nonempty directory name, the file to be loaded must be located in that directory. (Prior to MySQL 8.0.17, the file must be readable by all, not just readable by the server.)

svraju2020 2021-03-23 17:23:41
Can you please share some reference to know Mysql high availability options

What are different types of ha options(innodb, ndb cluster etc..)

ysf_cms 2021-03-24 04:00:20
Hi again anyone know bash command on Windows?
ysf_cms 2021-03-24 04:00:44
I have 37 GB csv file and ı want to import mysql
ysf_cms 2021-03-24 04:00:51
But it is slowly a way
MasterZiv 2021-03-24 07:08:00
ysf_cms 2021-03-24 04:00:44
I have 37 GB csv file and ı want to import mysql

Bash will not help you in this task, is is not related to the task and not needed

ysf_cms 2021-03-24 21:28:31
Bash will not help you in this task, is is not related to the task and not needed
MasterZiv 2021-03-24 21:29:12
ysf_cms 2021-03-24 21:28:31
Bash will not help you in this task, is is not related to the task and not needed

true

ysf_cms 2021-03-25 05:18:45
How would you recommend me to install it?
ysf_cms 2021-03-25 05:19:33
I am loading with cmd but very slow I have 650 million lines
ysf_cms 2021-03-25 05:20:22
How can I do this faster, I really need your help
piterden 2021-03-25 05:32:48
ysf_cms 2021-03-25 05:18:45
How would you recommend me to install it?

What exactly have you tried already?

MasterZiv 2021-03-25 06:38:47
ysf_cms 2021-03-25 05:18:45
How would you recommend me to install it?

To install what?

You don’t need bash for loading anything into a MySQL db,
Bash is not needed for this and doesn’t change loading speed

ysf_cms 2021-03-25 09:05:50
İmport to mysql Server
ysf_cms 2021-03-25 09:08:43
I want to import but it is slowly, ı dont understand slowly. For example .tsv file with bash command in one minute 1 million lines
ysf_cms 2021-03-25 09:10:45
piterden 2021-03-25 05:32:48
What exactly have you tried already?

I’m trying to import with cmd, but it’s too slow. I uploaded with the bash command, the values ​​did not come. For example, the IDs came, but no counter values ​​came

piterden 2021-03-25 09:11:20
ysf_cms 2021-03-25 09:10:45
I’m trying to import with cmd, but it’s too slow. I uploaded with the bash command, the values ​​did not come. For example, the IDs came, but no counter values ​​came

Show what are you doing

ysf_cms 2021-03-25 09:12:12
mysql_en-8794.jpg

ysf_cms 2021-03-25 09:12:50
mysql_en-8795.jpg

ysf_cms 2021-03-25 09:13:03
ysf_cms 2021-03-25 09:12:50

Bash command file this

|