Bug #57163 | http://dev.mysql.com/doc/refman/5.5/en/windows-source-build.html is outdated | ||
---|---|---|---|
Submitted: | 1 Oct 2010 11:09 | Modified: | 8 Dec 2010 2:57 |
Reporter: | Vladislav Vaintroub | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[1 Oct 2010 11:09]
Vladislav Vaintroub
[1 Oct 2010 11:23]
MySQL Verification Team
Thank you for the bug report.
[26 Oct 2010 18:55]
Santo Leto
Totally agree with Vladislav. We need to improve this part of the documentation. I'm listing here some other issues (Ref. Man rev. 23349). 1. At page http://dev.mysql.com/doc/refman/5.5/en/windows-source-build-cmake.html it is written that "6. Test the server. The server built using the preceding instructions expects that the MySQL base directory and data directory are C:\mysql and C:\mysql\data by default. If you want to test your server using the source tree root directory and its data directory as the base directory and data directory, you need to tell the server their path names. You can either do this on the command line with the --basedir and --datadir options, or by placing appropriate options in an option file." That's right. The problem is that new users do not know where to locate mysqld.exe and data directory. Please write that, after building, mysqld can be found in the directory sql\Debug (replace Debug with Release, if you have compiled a Release rather than a Debug) and that the data directory can be found in the sql directory. You might want to add in the doc the command to start the server: pth-to-source\sql\Debug>mysqld.exe --basedir="pth-to-source\sql" --datadir="pth-to-source\sql\data" 2. It is written also that "When the server is running in standalone fashion or as a service based on your configuration, try to connect to it from the mysql interactive command-line utility." Please write also that "you can find mysql.exe in the client\Debug directory (replace Debug with Release, if you have compiled a Release rather than a Debug)." 3. It is written that: "When you are satisfied that the programs you have built are working correctly, stop the server. Now you can install the distribution. One way to do this is to use the make_win_bin_dist script in the scripts directory of the MySQL source distribution" Now we use cpack (see http://forge.mysql.com/wiki/CMake). We need to document this in the Ref. Man. 4. In the page about make_win_bin_dist (http://dev.mysql.com/doc/refman/5.5/en/make-win-bin-dist.html) - if we will maintain it - we could add a short note to inform users on where the zip archive will be located after creation (in the root directory of source). This would help new users that just have compiled for the first time. As per make_win_bin_dist script, I think it would be a good idea to add a line at the end of the code to inform users: something like $NOINST_NAME ".zip created in " $DESTDIR as well as adding a script parameter to pass DESTDIR when invoking make_win_bin_dist. Of course if make_win_bin_dist is an out-of-date script which will be deprecated it doesn't make sense to improve it. If it does make, please let me know and I'll add a separate feature request for this. 5. It is written that "After installation, set up and start the server in the same way as for binary Windows distributions. This includes creating the system tables by running mysql_install_db." I think we don't need this anymore because if we use the new method to build the archive, data directory is included.
[17 Nov 2010 14:48]
Paul DuBois
Will handle as part of documenting WL#5161.
[8 Dec 2010 2:57]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. The source-installation instructions in the 5.5 manual have been rewritten for CMake: http://dev.mysql.com/doc/refman/5.5/en/source-installation.html