web page design common interview questions (five)

1, how to optimize MySQL database?
 Field properties: the field should be set to the NOT NULL (non-empty), this system will automatically ignore the NULL value comparison
 using a connection (the JOIN) instead subquery
 is not used as much as possible wildcards and keywords like fuzzy query
 
 2, for larger traffic to your site, what kind of measures should be taken to alleviate the traffic problem?
     Verify that the system hardware is adequate to support the current traffic data, database read and write to achieve separation, optimized database table, add an index commonly used data tables.
    Program features limit, hotlinking pictures or information, prohibit external users, restrict downloading large files, use different hosts major traffic diversion
 
 3, What are the three basic rules of MySQL database optimization is?
 
 (1), the system optimization, of the MySQL key_buffer, cache_buffer, query_cache the like associated with an increased capacity.
 (2), query on the field often increase the appropriate index.
 (3), the optimization of SQL statements to reduce the operation Distinct, Group, Join like statements.
 
 4, how to command data in a MySQL database back out?

 mysqldump -uroot -p123 database_name>D:database_name.txt


    Where "uroot" user name, "p123" is the password, "database_name" is the database name, "D: database_name.txt" is the location of the database backup storage.
    
5, how to restore data in a MySQL database through the command to the database?

    -uroot--p123 database_name the mysqldump <D: \ database_name.txt
 
. 6, please write access ways PHP MySQL database, and make a simple description of
    three common methods:
    PHP built-in function mysql_connect ()
    the PDO database abstraction layer ( PHP components)
    the ADODB database abstraction layer
7, there is a difference between those mysql_fetch_row () and mysql_fetch_array?
   mysql_fetch_row () function to achieve a line of data extracted from the result set must be used to read the index number of data.
   the mysql_fetch_array () function to achieve a line of data extracted from the result set, the index may be used to read data from the digital data, the index may be used to read a string of data values.

8, briefly MySQL database design paradigm and basic application

   Usually the third paradigm is sufficient for optimizing the structure of the table, do so to avoid the application that is overly complex, but also to avoid SQL statement is too large and cause poor system efficiency.

The first paradigm: if each of R is the attribute relationship model no longer decomposed, belongs to the first paradigm
second paradigm: a first attribute if R paradigm, and all non codes are totally dependent on the properties of the attribute code, for the first Paradigm two
third paradigm: If R property of the second paradigm, and all non-attribute code is not a candidate code dependent on the transfer function, belonging to the third paradigm
9, what combination of web stability of the platform and build security you think a higher?
   PHP development environment to build the project, the best combination is LAMP (Linux operating system + APache server + PHP + MySQL database language), the best web platform is
   the Linux operating system and Apache server. Compare in terms of performance, safety, or price, they are the ideal choice.
   Linux operating system has the stability and security features, and also supports recompile, and low prices, Apache server has a Linux version,
   and it is combined with PHP is very stable.

10, outlining the project development process
   web basic process of project development as follows
  (1), development background
  (2), systems analysis (requirements analysis, feasibility analysis, preparation of project proposals)
  (3), system design (system goals, system functional structure, system flow chart, the development environment, the organizational structure of the folder)
  (4), development environment set up
  (5), database design (database analysis, database design concept, the use PowerDesigner modeling), create a database and database tables
  (6 ), the development of the site (foreground design, background design)
  (7), website testing
  (8), publish a Web site
  
   
   
    
    
    
 

发布了250 篇原创文章 · 获赞 102 · 访问量 98万+

Guess you like

Origin blog.csdn.net/fengqingtao2008/article/details/98199613