Resolve the error that the database cannot be connected when configuring MySQL on Mac OS X
28,915 views, 5 Comments

Configure the local environment on your MacBook. After MySQL is configured, you can't successfully connect to the database when installing some open source projects. After a round of searching, you find the following solution: First, this kind of error occurs because MySQL has some problems finding sockets on the OS X system, but it is also very simple to solve, The socket involved is either/tmp/mysql.sock or/var/mysql/mysql.sock. If something goes wrong, MySQL finds the wrong location. Use the following command to find the correct location on your computer: Ls - l/tmp/mysql.sock [or/var/mys Read More

What will you eat tonight—— Randomly shake the front and rear codes of the hotel
123,706 views, 27 Comments

Long lost technical articles! Recently, I have been struggling with where to eat every night, and finally decided to write a page to make a decision for myself! HTML part: <! DOCTYPE html"> <head> <me... Read More

Learning Record of Zero Setting Problem for Two dimensional Array
59,413 views, 27 Comments

I just recharged a wave of belief, and posted a code to lead an addiction~Today's high yield competition sows Not long ago, I did a question to set the row and column of 0 in a two-dimensional array to 0. At the beginning, it was written as follows: for (int i = 0; i < m;... Read More

Another article on weeding, oh no, big trees
69,734 views, 34 Comments

Cough... Yes, I'm not dead... What a surprise... anyway! I am very diligent to weed, I know you all miss me, I miss you too~(insincere) How can I describe it after a long time... what the fuck... It's just... see evidence of people's distress everywhere... I don't know where to start. I may blog a little off and on. The technical part may be put aside for a long time. After abandoning the station for many years, there has been no recharging, and another year has passed. I think today, I'd better find some hobbies. okay. That's all for now. Thank you for remembering me. Read More

Ah ah ah weeding weeding!
60,041 views, 57 Comments

I saw that the last update was in 11 months ago. In order to prevent this number from exceeding one year, I decided to start weeding! In fact, there is nothing to say. Let's give a brief overview of the major events that took place this year! 1. Break up with my ex boyfriend; 2. I came to Tokyo University as an exchange student. It's been a long, long, bad day, but now everything is starting to get better. The others are not important, so let's take this as an example! Read More

Precautions for multi table query using UNION method
69,430 views, 67 Comments

Suppose there are two tables with identical fields, table1 and table2. The fields are password, username and email. Then the basic method of multi table query using UNION (or UNION ALL) is simple join: SELECT password,username,email FROM table1 where username like '123' UNION ALL//or UNION to remove duplicate data SELECT password,username,email FROM table2 where username like '123' However, if the table and the table fields are different, there is overlap but not complete uniformity Read More